Repository navigation
Commit 986eabc
committed
fix(anthropic): default tool_choice to auto when thinking is enabled
When adaptive thinking is enabled and no explicit toolChoice is provided,
the Anthropic API requires tool_choice to be set. Default to { type: 'auto' }
to match the API contract and fix the test expectation at line 2125 of
anthropic-transport-stream.test.ts.
Fixes: CI/checks-node-agentic-agents-core-models1 parent bd96e4d commit 986eabc
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
988 | | - | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
989 | 993 | | |
990 | 994 | | |
991 | 995 | | |
| |||
0 commit comments