Version:
interfaceextends Omit<UseVisionProviderOptions, "defaultModel">

UseOllamaVisionProviderOptions

Options for useOllamaVisionProvider.
Accepts all provider config options plus an optional model override.

typescript
interface UseOllamaVisionProviderOptions extends Omit<UseVisionProviderOptions, "defaultModel">

Properties

NameTypeDescription
anthropic?{ apiKey: string; baseURL: string }Anthropic provider options.
coordinateScale?numberUpper bound of the normalized coordinate range (coordinates are in
[0, coordinateScale]). Defaults to 1000. Only used when
coordinateSpace is "normalized".
coordinateSpace?VercelAiSdkVisionCoordinateSpaceCoordinate space the model reports regions in. Defaults to
"pixels". See VercelAiSdkVisionCoordinateSpace.
defaultConfidence?numberDefault confidence threshold in the range [0, 1].
defaultMaxMatches?numberDefault max number of returned matches.
matching?VisionMatchingSettingsExplicit matcher tuning settings. When present, these values override
equivalent top-level options.
model?stringOllama model ID to use (defaults to llama3.2-vision:11b).
ollama?{ baseURL: string }Ollama provider options.
openai?{ apiKey: string; baseURL: string }OpenAI provider options.
openaiCompatible?{ apiKey: string; baseURL: string; headers: Record<string, string>; name: string; queryParams: Record<string, string>; supportsStructuredOutputs: boolean }Configuration for self-hosted servers that expose the OpenAI Chat
Completions API (e.g. vLLM, LMStudio, llama.cpp, LocalAI). Required when
the provider is set to "openai-compatible".

Was this page helpful?