ソースを参照

fix(studio): increase probe maxTokens to 248 for thinking models

maxTokens: 5 caused thinking models (MiniMax M2.7) to exhaust all
tokens on reasoning with no text output, failing the probe even
with a valid key.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fanghanjun 6 ヶ月 前
親
コミット
b787ab84d6
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      packages/studio/src/api/server.ts

+ 1 - 1
packages/studio/src/api/server.ts

@@ -478,7 +478,7 @@ async function probeServiceCapabilities(args: {
       } as ProjectConfig["llm"]);
       } as ProjectConfig["llm"]);
 
 
       try {
       try {
-        await chatCompletion(client, model, [{ role: "user", content: "ping" }], { maxTokens: 5 });
+        await chatCompletion(client, model, [{ role: "user", content: "hi" }], { maxTokens: 248 });
         const models = discoveredModels.length > 0
         const models = discoveredModels.length > 0
           ? discoveredModels
           ? discoveredModels
           : [{ id: model, name: model }];
           : [{ id: model, name: model }];