Repository navigation
OllamaLLM host param + real local-inference testcontainer — #829/#858 - #859
Merged
Merged
Conversation
…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]>
Closed
18 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OllamaLLMhard-codedAsyncClient()(no host), so it could only reach a local Ollama athttp://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 = Noneparameter, forwarded toollama.AsyncClient(host=...).Nonekeeps the default localhost behaviour.Test
Real
ollama/ollamatestcontainer that pulls a tiny model (qwen2.5:0.5b) and streams a real completion throughOllamaLLM— actual local inference, not a mock. Runs in a dedicatedollama-integrationCI job (isolated because the image + model pull is heavy).Part of epic #829 (LLM track).