[PR #5829] [CLOSED] Fix "finish_reason" when tools are called #22479

Closed
opened 2026-04-19 16:22:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5829
Author: @vertrue
Created: 7/21/2024
Status: Closed

Base: mainHead: vertrue/fix-tools-stop-reason


📝 Commits (2)

  • 3134eba Add 'finish_reason': 'tool_calls' when tools are called
  • 20b7a56 Add 'finish_reason': 'tool_calls' when tools are called

📊 Changes

2 files changed (+4 additions, -0 deletions)

View changed files

📝 openai/openai.go (+3 -0)
📝 server/routes.go (+1 -0)

📄 Description

Not sure if it fully fixes #5796
Please, review and help if possible (I am not familiar with go)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5829 **Author:** [@vertrue](https://github.com/vertrue) **Created:** 7/21/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `vertrue/fix-tools-stop-reason` --- ### 📝 Commits (2) - [`3134eba`](https://github.com/ollama/ollama/commit/3134eba7590de55421d015a943bc515f573d98ab) Add 'finish_reason': 'tool_calls' when tools are called - [`20b7a56`](https://github.com/ollama/ollama/commit/20b7a564384830804e27ab3673244e7ddc4f7b61) Add 'finish_reason': 'tool_calls' when tools are called ### 📊 Changes **2 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `openai/openai.go` (+3 -0) 📝 `server/routes.go` (+1 -0) </details> ### 📄 Description Not sure if it fully fixes #5796 Please, review and help if possible (I am not familiar with go) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 16:22:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#22479