chore: reduce duplication of field in transform

thinking-toggle-wip
Aiden Cline 2025-12-13 18:07:22 -06:00
parent 860b62a6e8
commit 51267f256e
1 changed files with 8 additions and 3 deletions

View File

@ -200,9 +200,14 @@ export namespace ProviderTransform {
}
export function temperature(model: Provider.Model) {
if (model.api.id.toLowerCase().includes("qwen")) return 0.55
if (model.api.id.toLowerCase().includes("claude")) return undefined
if (model.api.id.toLowerCase().includes("gemini-3-pro")) return 1.0
const id = model.id.toLowerCase()
if (id.toLowerCase().includes("qwen")) return 0.55
if (id.toLowerCase().includes("claude")) return undefined
if (id.toLowerCase().includes("gemini-3-pro")) return 1.0
// if (id.toLowerCase().includes("kimi-k2")) {
// if (id.includes("thinking")) return 1.0
// return 0.6
// }
return 0
}