Skip to content

feat: add Ollama LLM provider#7

Open
wondr-wclabs wants to merge 1 commit into
Cyberfilo:mainfrom
wondr-wclabs:codex/add-ollama-provider
Open

feat: add Ollama LLM provider#7
wondr-wclabs wants to merge 1 commit into
Cyberfilo:mainfrom
wondr-wclabs:codex/add-ollama-provider

Conversation

@wondr-wclabs
Copy link
Copy Markdown

@wondr-wclabs wondr-wclabs commented Jun 4, 2026

Fixes #2.

Adds an OllamaClient that talks to the local OpenAI-compatible /v1/chat/completions endpoint, plus make_client() routing for ollama/<model> so users can run PromptQuery without an external API key or schema data leaving their machine.

The implementation deliberately uses Python's stdlib HTTP/JSON stack instead of adding a runtime dependency. OLLAMA_BASE_URL can override the default http://localhost:11434 endpoint.

Validation

  • .venv/bin/pytest tests/test_llm.py -q -> 5 passed
  • .venv/bin/pytest -q -> 54 passed
  • git diff --check -> clean

@wondr-wclabs wondr-wclabs force-pushed the codex/add-ollama-provider branch from d8c6fff to 9ed51a1 Compare June 5, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an Ollama / local-LLM provider

1 participant