Skip to content

OllamaLLM host param + real local-inference testcontainer — #829/#858 - #859

Merged
AmitoVrito merged 2 commits into
mainfrom
feat/issue-829-llm-ollama-container
Jul 22, 2026
Merged

AmitoVrito merged 2 commits into
mainfrom
feat/issue-829-llm-ollama-container

Conversation

@AmitoVrito

Copy link
Copy Markdown
Collaborator

Summary

OllamaLLM hard-coded AsyncClient() (no host), so it could only reach a local Ollama at http://localhost:11434 — no way to point it at a remote Ollama server or a non-default port. Found while adding a real Ollama testcontainer (epic #829).

Change (additive, non-breaking)

Add an optional host: str | None = None parameter, forwarded to ollama.AsyncClient(host=...). None keeps the default localhost behaviour.

Test

Real ollama/ollama testcontainer that pulls a tiny model (qwen2.5:0.5b) and streams a real completion through OllamaLLM — actual local inference, not a mock. Runs in a dedicated ollama-integration CI job (isolated because the image + model pull is heavy).

Part of epic #829 (LLM track).

AmitoVrito and others added 2 commits July 22, 2026 09:09
…ainer (#858)

OllamaLLM hard-coded AsyncClient() (localhost only), so a remote or non-default
Ollama server was unreachable — and it couldn't be tested without a local Ollama.
Add an optional host parameter forwarded to ollama.AsyncClient(host=...). Additive
and non-breaking. Adds a real ollama/ollama testcontainer that pulls a tiny model
(qwen2.5:0.5b) and streams actual local inference through OllamaLLM — the one LLM
provider that can run real inference in a container. Isolated in its own CI job
because the image + model pull is heavy (~10 min).

Part of #829. Closes #858.

Co-authored-by: Alessandro Mecca <[email protected]>
Co-authored-by: Dhruv Garg <[email protected]>
@AmitoVrito
AmitoVrito merged commit 9f52a2f into main Jul 22, 2026
16 checks passed
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.

1 participant