2
0
Files
bot/packages/forge/blocks/openai/helpers/isModelCompatibleWithVision.ts

11 lines
362 B
TypeScript
Raw Normal View History

import { wildcardMatch } from '@typebot.io/lib/wildcardMatch'
import {
excludedModelsFromImageUrlSupport,
modelsWithImageUrlSupport,
} from '../constants'
export const isModelCompatibleWithVision = (model: string | undefined) =>
model && !excludedModelsFromImageUrlSupport.includes(model)
? wildcardMatch(modelsWithImageUrlSupport)(model)
: false