You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried asking for help in the community on discord or discussions and have not received a response.
I have tried searching the documentation and have not found an answer.
What Model are you using?
gpt-3.5-turbo
gpt-4-turbo
gpt-4
Bedrock Anthropic Claude Sonnet 3.5
Describe the bug
Doesn't seem the tools are being sent to (Bedrock) Anthropic correctly. For instance, if I set set_verbose=True on the README example, I can see that tool_choice is not being sent:
{'model':
'claude-3-opus-20240229',
'messages': [{'role': 'user', 'content': [{'type': 'text', 'text': 'Extract Jason is 25 years old.'}]}],
'max_tokens': 1024,
'tools': [{'name': 'User', 'description': 'Correctly extracted `User` with all the required parameters with correct types', 'input_schema': {'properties': {'name': {'title': 'Name', 'type': 'string'}, 'age': {'title': 'Age', 'type': 'integer'}}, 'required': ['age', 'name'], 'type': 'object'}}]}'
What Model are you using?
Describe the bug
Doesn't seem the tools are being sent to (Bedrock) Anthropic correctly. For instance, if I set
set_verbose=True
on the README example, I can see thattool_choice
is not being sent:Per Anthropic's [documentation](https://docs.anthropic.com/en/docs/build-with-claude/tool-use] the default is:
Without this, in more complicated examples, Claude is not obliged to generate a valid JSON.
The text was updated successfully, but these errors were encountered: