mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
chore: reduce duplication of field in transform
This commit is contained in:
parent
c7bac83212
commit
d4cfbd8219
1 changed files with 8 additions and 3 deletions
|
|
@ -199,9 +199,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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue