Просмотр исходного кода

tweak: adjust minimax m2 topK and add minimax m2.1 topP

Aiden Cline 2 месяцев назад
Родитель
Сommit
8785bec29c
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      packages/opencode/src/provider/transform.ts

+ 5 - 2
packages/opencode/src/provider/transform.ts

@@ -227,13 +227,16 @@ export namespace ProviderTransform {
   export function topP(model: Provider.Model) {
     const id = model.id.toLowerCase()
     if (id.includes("qwen")) return 1
-    if (id.includes("minimax-m2")) return 0.95
+    if (id.includes("minimax-m2")) {
+      if (id.includes("m2.1")) return 0.9
+      return 0.95
+    }
     return undefined
   }
 
   export function topK(model: Provider.Model) {
     const id = model.id.toLowerCase()
-    if (id.includes("minimax-m2")) return 40
+    if (id.includes("minimax-m2")) return 20
     return undefined
   }