@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user