Commit cd453f9
fix: prevent LLM tool calls in result selection and handle content block lists
Add tool_choice: "none" when tool definitions are included in chat
completion requests — tools are only declared so the API accepts the
tool-call message history, not for the model to invoke. Also handle
APIs that return content as a list of blocks rather than a plain string.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 55f41cb commit cd453f9
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| |||
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
365 | 374 | | |
366 | 375 | | |
367 | 376 | | |
| |||
0 commit comments