Skip to content

Commit ab5b775

Browse files
committed
fix: change tool_choice from required to auto for native protocol
1 parent b09338c commit ab5b775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/task/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2955,7 +2955,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
29552955
mode: mode,
29562956
taskId: this.taskId,
29572957
// Include tools and tool protocol when using native protocol and model supports it
2958-
...(shouldIncludeTools ? { tools: allTools, tool_choice: "required", toolProtocol } : {}),
2958+
...(shouldIncludeTools ? { tools: allTools, tool_choice: "auto", toolProtocol } : {}),
29592959
}
29602960

29612961
// The provider accepts reasoning items alongside standard messages; cast to the expected parameter type.

0 commit comments

Comments
 (0)