Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kamillitman
Copy link
Contributor

No description provided.

"max_tokens": max_tokens,
"temperature": temperature,
"messages": messages,
"tools": tools.map(|tools_inner| tools_inner
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing null in tools causes API errors. Instead we now only add this to payload if tools are indeed provided.

@kamillitman kamillitman requested a review from nefernata August 9, 2025 20:45
@kamillitman kamillitman merged commit 040fb8c into main Aug 11, 2025
1 check passed
@kamillitman kamillitman deleted the bugfix-anthropic-no-tools-payload branch August 11, 2025 21:05
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.

2 participants