fix(opencode): normalize Muse Free tool choice

OpenCode Free returns HTTP 400 for muse-spark-1.3-contributor-free when tool_choice is non-auto. Declare forceAutoToolChoiceModels quirk and normalize explicit tool_choice to auto.
This commit is contained in:
KunN-21
2026-09-17 18:19:38 +07:00
parent eafac37dcb
commit aa14ef72e2
3 changed files with 98 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ export default {
"x-opencode-client": "desktop",
},
noAuth: true,
quirks: {
forceAutoToolChoiceModels: ["muse-spark-1.3-contributor-free"],
},
},
models: [
// Endpoint formats differ per model, so declare non-chat models explicitly.