Ollama
Use models served by a local Ollama instance for embeddings and generation
The ollama provider calls an Ollama server through its OpenAI-compatible API.
What It Provides
| Component | Inputs | Notes |
|---|---|---|
| Embedder | Text | For example nomic-embed-text |
| Generator | Text, images | Images need a vision model; streaming and function tools where the model supports them |
Credentials
None. The endpoint defaults to http://127.0.0.1:11434; set url for another
host.
Example
{
"embedders": {
"ollama-text": { "provider": "ollama", "model": "nomic-embed-text" }
},
"generators": {
"ollama-chat": { "provider": "ollama", "model": "llama3.2" }
}
}
Ollama embeddings do not accept retrieval input types or query instructions. For a local model with those controls, use the Antfly provider.
Thinking Models
Thinking models spend part of max_tokens on reasoning before producing an
answer. Antfly's default is 256 tokens, which may leave no budget for visible
output. Set a larger max_tokens budget when keeping thinking enabled, or set
reasoning_effort to "none" to disable thinking on models that support it:
{
"provider": "ollama",
"model": "your-thinking-model",
"reasoning_effort": "none",
"max_tokens": 1024
}
Supported reasoning efforts depend on the selected model. An empty response
with finish_reason: "length" fails with InferenceOutputIncomplete so agents
cannot report an empty, truncated answer as a completed generation. JSON agent
requests return HTTP 502 with error: "InferenceOutputIncomplete" and guidance
to increase the output token budget or reduce reasoning effort.