2
0
Files
bot/packages/forge/blocks/anthropic/helpers/isModelCompatibleWithVision.ts
Baptiste Arnaud 043f0054b0 ⬆️ Upgrade AI SDK (#1641)
2024-07-15 14:32:42 +02:00

6 lines
260 B
TypeScript

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