Claude Sonnet 3.5 (Bedrock) Always announces which tool it's going to use. #3616
-
I have configured a When I switch to OpenAI gpt4o, it invokes the tools immediately without the announcement which is the desired outcome. Package Versions: Has anyone encountered this and figured out how to correct this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I've been dealing with the same issue and I just switched to use Sonnet 3.5 v2. I also added the following to my system prompt: "Do not show your "chain of thought" before choosing a tool. If you decide to call a tool, the first chunks should be tool-call and not text-delta." I got the idea from this portion of Anthropic's documentation: https://docs.anthropic.com/en/docs/build-with-claude/tool-use#chain-of-thought I'm now getting tool-call and tool-result chunks streamed before text-delta chunks |
Beta Was this translation helpful? Give feedback.
-
I was having the same issue with models provided directly by Anthropic. The workaround I found was to...
The tool description part stabilized the model's behavior a lot. |
Beta Was this translation helpful? Give feedback.
I've been dealing with the same issue and I just switched to use Sonnet 3.5 v2. I also added the following to my system prompt:
"Do not show your "chain of thought" before choosing a tool. If you decide to call a tool, the first chunks should be tool-call and not text-delta."
I got the idea from this portion of Anthropic's documentation: https://docs.anthropic.com/en/docs/build-with-claude/tool-use#chain-of-thought
I'm now getting tool-call and tool-result chunks streamed before text-delta chunks