Skip to content

Navigation Menu

Sign in
Sign up

feat: add Ollama LLM provider - #7

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

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

Conversation

@wondr-wclabs

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

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add an Ollama / local-LLM provider

1 participant

AltStyle によって変換されたページ (->オリジナル) /