Merge pull request #32 from auriti/fix/tool-choice-none

fix: map tool_choice 'none' in OpenAI shim
This commit is contained in:
Kevin Codex
2026-04-02 01:42:00 +08:00
committed by GitHub

View File

@@ -645,6 +645,8 @@ class OpenAIShimMessages {
} }
} else if (tc.type === 'any') { } else if (tc.type === 'any') {
body.tool_choice = 'required' body.tool_choice = 'required'
} else if (tc.type === 'none') {
body.tool_choice = 'none'
} }
} }
} }