Forráskód Böngészése

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 éve
szülő
commit
169323e238
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);
       }
     }