Skip to content

Fix mistral tool calling#804

Merged
rumpl merged 1 commit intodocker:mainfrom
rumpl:fix-mistral
Nov 14, 2025
Merged

Fix mistral tool calling#804
rumpl merged 1 commit intodocker:mainfrom
rumpl:fix-mistral

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented Nov 14, 2025

Mistral sends, in one event, all the tools calls and the usage, so we have to make sure that we collect all the content and the tool calls before looking at the finish reason and returning.

Fixes #798

Mistral sends, in one event, all the tools calls _and_ the usage, so we
have to make sure that we collect all the content and the tool calls
before looking at the finish reason and returning.

Fixes docker#798

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl rumpl requested a review from a team as a code owner November 14, 2025 23:47
@rumpl rumpl changed the title ,Fix mistral tool calling Fix mistral tool calling Nov 14, 2025
@rumpl rumpl merged commit 185975b into docker:main Nov 14, 2025
5 checks passed
@rumpl rumpl deleted the fix-mistral branch November 18, 2025 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool calls are broken with Mistral

1 participant