chore: reduce duplication of field in transform
This commit is contained in:
parent
860b62a6e8
commit
51267f256e
1 changed files with 8 additions and 3 deletions
|
|
@ -200,9 +200,14 @@ export namespace ProviderTransform {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function temperature(model: Provider.Model) {
|
export function temperature(model: Provider.Model) {
|
||||||
if (model.api.id.toLowerCase().includes("qwen")) return 0.55
|
const id = model.id.toLowerCase()
|
||||||
if (model.api.id.toLowerCase().includes("claude")) return undefined
|
if (id.toLowerCase().includes("qwen")) return 0.55
|
||||||
if (model.api.id.toLowerCase().includes("gemini-3-pro")) return 1.0
|
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
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue