浏览代码

Merge pull request #5415 from skymkmk/pr-fix-incorrect-vision-model-judgement

fix: remove the visual model judgment method that checks if the model…
Dogtiti 1 年之前
父节点
当前提交
169323e238
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/client/platforms/openai.ts

+ 1 - 1
app/client/platforms/openai.ts

@@ -197,7 +197,7 @@ export class ChatGPTApi implements LLMApi {
       };
 
       // add max_tokens to vision model
-      if (visionModel && modelConfig.model.includes("preview")) {
+      if (visionModel) {
         requestPayload["max_tokens"] = Math.max(modelConfig.max_tokens, 4000);
       }
     }