API reference
API reference
Select your platform
No SDKs available
No versions available

OllamaProvider Class

Fields

string host[Get]
string model[Get]

Properties

Indicates whether this provider will package images for multimodal local models (for example, llava).
Disable when using text-only models to avoid unnecessary payload work.See IChatTask and local model requirements in Ollama docs.
override InferenceType DefaultSupportedTypes[Get]

Member Functions

Sends a prompt to a local Ollama server and returns assistant text.
Supports optional image inputs by converting them to base64 when SupportsVision is enabled.See IChatTask. Ollama API: https://docs.ollama.com/
Parameters
req
Message and optional images.
stream
Optional partial callback; final text is still returned.
ct
Cancellation token for request/HTTP.
Returns
ChatResponse containing text plus raw JSON for inspection.