mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
tweak: minimax m2.1 topK and topP to match recommended values
This commit is contained in:
parent
00e2ed04e7
commit
636fa3527f
1 changed files with 4 additions and 2 deletions
|
|
@ -229,7 +229,6 @@ export namespace ProviderTransform {
|
|||
const id = model.id.toLowerCase()
|
||||
if (id.includes("qwen")) return 1
|
||||
if (id.includes("minimax-m2")) {
|
||||
if (id.includes("m2.1")) return 0.9
|
||||
return 0.95
|
||||
}
|
||||
if (id.includes("gemini")) return 0.95
|
||||
|
|
@ -238,7 +237,10 @@ export namespace ProviderTransform {
|
|||
|
||||
export function topK(model: Provider.Model) {
|
||||
const id = model.id.toLowerCase()
|
||||
if (id.includes("minimax-m2")) return 20
|
||||
if (id.includes("minimax-m2")) {
|
||||
if (id.includes("m2.1")) return 40
|
||||
return 20
|
||||
}
|
||||
if (id.includes("gemini")) return 64
|
||||
return undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue