소스 검색

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);
       }
     }