Liking cljdoc? Tell your friends :D

wagoe.ai.shell.providers.ollama

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
raw docstring

create-ollama-providerclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close