mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak: setting chat_template_args in transform
This commit is contained in:
parent
b41051b4ee
commit
342595e0f7
1 changed files with 4 additions and 1 deletions
|
|
@ -226,7 +226,10 @@ export namespace ProviderTransform {
|
|||
}
|
||||
}
|
||||
|
||||
if (model.providerID === "baseten") {
|
||||
if (
|
||||
model.providerID === "baseten" ||
|
||||
(model.providerID === "opencode" && ["kimi-k2-thinking", "glm-4.6"].includes(model.api.id))
|
||||
) {
|
||||
result["chat_template_args"] = { enable_thinking: true }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue