Преглед изворни кода

fix: revert gpt-4-turbo-preview detection

fred-bf пре 1 година
родитељ
комит
5df8b1d183
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      app/utils.ts

+ 6 - 2
app/utils.ts

@@ -297,6 +297,10 @@ export function isVisionModel(model: string) {
     "gpt-4-turbo",
     "gpt-4o",
   ];
+  const isGpt4TurboPreview = model === "gpt-4-turbo-preview";
 
-  return visionKeywords.some((keyword) => model.includes(keyword));
-}
+  return (
+    visionKeywords.some((keyword) => model.includes(keyword)) &&
+    !isGpt4TurboPreview
+  );
+}