11 lines
362 B
TypeScript
11 lines
362 B
TypeScript
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
|