Skip to content

Commit 8785bec

Browse files
committed
tweak: adjust minimax m2 topK and add minimax m2.1 topP
1 parent d4b7f75 commit 8785bec

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,16 @@ export namespace ProviderTransform {
227227
export function topP(model: Provider.Model) {
228228
const id = model.id.toLowerCase()
229229
if (id.includes("qwen")) return 1
230-
if (id.includes("minimax-m2")) return 0.95
230+
if (id.includes("minimax-m2")) {
231+
if (id.includes("m2.1")) return 0.9
232+
return 0.95
233+
}
231234
return undefined
232235
}
233236

234237
export function topK(model: Provider.Model) {
235238
const id = model.id.toLowerCase()
236-
if (id.includes("minimax-m2")) return 40
239+
if (id.includes("minimax-m2")) return 20
237240
return undefined
238241
}
239242

0 commit comments

Comments
 (0)