Signatures
Building an ImageInput
Input constructors hang off the facade asRunAnywhere.image, so renderer code builds the same
values main-process code does:
From a file the user picked
From a screenshot
Desktop is the one platform where screen capture is a normal thing to do:Streaming
Options
vlm takes the same LlmOptions as llm, so maxOutputTokens, temperature, and
systemPrompt all apply.
Models
VLM runs on the llama.cpp backend, so the model must be a GGUF vision model with its projector. Install@runanywhere/electron-llamacpp.
On win32-arm64 llama.cpp does not load at all, so vision is unavailable there. Check
capabilities() before putting it in the interface.