mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: change tool_choice from required to auto for native protocol (#9242)
This commit is contained in:
parent
237c324fcd
commit
5069ce92a0
1 changed files with 1 additions and 1 deletions
|
|
@ -2957,7 +2957,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
mode: mode,
|
||||
taskId: this.taskId,
|
||||
// Include tools and tool protocol when using native protocol and model supports it
|
||||
...(shouldIncludeTools ? { tools: allTools, tool_choice: "required", toolProtocol } : {}),
|
||||
...(shouldIncludeTools ? { tools: allTools, tool_choice: "auto", toolProtocol } : {}),
|
||||
}
|
||||
|
||||
// The provider accepts reasoning items alongside standard messages; cast to the expected parameter type.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue