The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
import { declaredVision, isVisionCompatible } from '../../../../lib/model-compatibility'
/** Can the chosen model read images? What the model list declares wins over the guess from the name. */
export function modelReadsImages(name: string | null, models: ReadonlyArray<{ name: string }>): boolean {
if (!name) return false
return declaredVision(models.find((m) => m.name === name)) ?? isVisionCompatible(name)
}