mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
chore: reduce duplication of field in transform
This commit is contained in:
parent
c7bac83212
commit
d4cfbd8219
@ -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…
x
Reference in New Issue
Block a user