MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / isVisionModel

Function isVisionModel

app/utils.ts:283–293  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

281}
282
283export function isVisionModel(model: string) {
284 const visionModels = useAccessStore.getState().visionModels;
285 const envVisionModels = visionModels?.split(",").map((m) => m.trim());
286 if (envVisionModels?.includes(model)) {
287 return true;
288 }
289 return (
290 !EXCLUDE_VISION_MODEL_REGEXES.some((regex) => regex.test(model)) &&
291 VISION_MODEL_REGEXES.some((regex) => regex.test(model))
292 );
293}
294
295export function isDalle3(model: string) {
296 return "dall-e-3" === model;

Callers 11

chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
ChatActionsFunction · 0.90
_ChatFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected