Ver Fonte

fix: revert gpt-4-turbo-preview detection

fred-bf há 1 ano atrás
pai
commit
5df8b1d183
1 ficheiros alterados com 6 adições e 2 exclusões
  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
+  );
+}