Ollama AI provider adapter.
Connects to a local Ollama instance (default: http://localhost:11434). No API key required — offline-first by design.
Implements IAIProvider via the Ollama REST API: POST /api/chat — used for all completions POST /api/generate — alternative for simple text generation
Ollama AI provider adapter. Connects to a local Ollama instance (default: http://localhost:11434). No API key required — offline-first by design. Implements IAIProvider via the Ollama REST API: POST /api/chat — used for all completions POST /api/generate — alternative for simple text generation
(create-ollama-provider {:keys [base-url model timeout]})Create an OllamaProvider.
Args: config - map with: :base-url - Ollama base URL (default "http://localhost:11434") :model - model name (default "qwen2.5-coder:7b")
Returns: OllamaProvider record.
Create an OllamaProvider.
Args:
config - map with:
:base-url - Ollama base URL (default "http://localhost:11434")
:model - model name (default "qwen2.5-coder:7b")
Returns:
OllamaProvider record.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |