mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	fix: revert gpt-4-turbo-preview detection
This commit is contained in:
		@@ -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
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user