Skip to content

Return tool_calls when finish_reason is "max_tokens".#198

Open
azriel-healthpoint wants to merge 1 commit intoaws-samples:mainfrom
azriel-healthpoint:bugfix/197/return-tool-use-on-max-tokens-finish-reason
Open

Return tool_calls when finish_reason is "max_tokens".#198
azriel-healthpoint wants to merge 1 commit intoaws-samples:mainfrom
azriel-healthpoint:bugfix/197/return-tool-use-on-max-tokens-finish-reason

Conversation

@azriel-healthpoint
Copy link
Copy Markdown

@azriel-healthpoint azriel-healthpoint commented Oct 29, 2025

Description of changes:

Return tool calls when the finish_reason is "max_tokens".

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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.

Message with finish_reason = "max_tokens" can contain toolUse, but the tool use isn't returned

1 participant