Skip to content

OllamaLLM: support a custom host (remote/non-default Ollama server) #858

Closed

Description

@AmitoVrito

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).

Activity

  1. added this to the v2.0.1 milestone on Jul 22, 2026
  2. added
    enhancement
    v2.0.1
    on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv2.0.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions