Tool calling on Llama 3.2 not working with system prompt + image + zero temperature #4374
Labels
bedrock-runtime
bug
This issue is a confirmed bug.
p2
This is a standard priority issue
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the bug
When using Llama 3.2 on AWS Bedrock with the following combination of inputs, the tools are not respected and the response is plain text. It only happens when:
Changing any of these (e.g. increasing temperature to 1) fixes the problem and
toolUse
is returned.Regression Issue
Expected Behavior
toolsUse
contains the tools from the model.Current Behavior
toolsUse
is empty.Reproduction Steps
Run the following script - https://gist.github.com/p0deje/82a09ddadf7c39c1b11f322f7de9dfb1
Possible Solution
No response
Additional Information/Context
Originally reported to langchain-ai/langchain-aws#285
SDK version used
1.35.64
Environment details (OS name and version, etc.)
macOS 15.1.1
The text was updated successfully, but these errors were encountered: