fix(claude): read disable_parallel_tool_use from tool_choice

This commit is contained in:
Darley
2026-03-17 19:35:41 +08:00
parent 19e1a4447a
commit 9c6c3612a8
2 changed files with 5 additions and 5 deletions

View File

@@ -271,9 +271,9 @@ func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, _ bool)
}
}
// Default to parallel tool calls unless the client explicitly disables them.
// Default to parallel tool calls unless tool_choice explicitly disables them.
parallelToolCalls := true
if disableParallelToolUse := rootResult.Get("disable_parallel_tool_use"); disableParallelToolUse.Exists() {
if disableParallelToolUse := rootResult.Get("tool_choice.disable_parallel_tool_use"); disableParallelToolUse.Exists() {
parallelToolCalls = !disableParallelToolUse.Bool()
}