We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09338c commit ab5b775Copy full SHA for ab5b775
src/core/task/Task.ts
@@ -2955,7 +2955,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
2955
mode: mode,
2956
taskId: this.taskId,
2957
// Include tools and tool protocol when using native protocol and model supports it
2958
- ...(shouldIncludeTools ? { tools: allTools, tool_choice: "required", toolProtocol } : {}),
+ ...(shouldIncludeTools ? { tools: allTools, tool_choice: "auto", toolProtocol } : {}),
2959
}
2960
2961
// The provider accepts reasoning items alongside standard messages; cast to the expected parameter type.
0 commit comments