Registry Mirror
Skip to content

Conversation

@SaiPisey2

Copy link
Copy Markdown

What changed

Previously, all Ollama models in an agent used whichever host was compiled last, and a model without a host could inherit another model’s host. Each model now carries its own host, which the Go and Python runtimes and the egress check use. The runtimes fall back to OLLAMA_API_BASE only when a model has no host; a ModelConfig host takes precedence over the Harness environment variable.

Older or custom runtime images will reject the new host field after a controller upgrade, as with #3458.

Testing

Translator tests cover per-model hosts, embedder and egress behavior, and URL normalization. Go and Python runtime tests verify per-host requests and environment fallback. Go lint passed; Go tests passed across 25 packages with race detection; Ruff passed; pytest passed (659 tests). One TLS E2E test also fails on main.

AI tools provided non-trivial assistance with the code and tests; I reviewed the changes and ran the checks.

Fixes #3070

Signed-off-by: SaiPisey2 <piseysai0202@gmail.com>
@SaiPisey2
SaiPisey2 requested review from a team and supreme-gg-gg as code owners November 7, 2026 14:14
@github-actions github-actions Bot added the bug Something isn't working label Nov 7, 2026
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale because of no activity in the last 15 days. It will be closed in the next 5 days unless it is tagged "no stalebot" or other activity occurs.

@github-actions github-actions Bot added the stale This issue or PR has become stale label Nov 23, 2026
@SaiPisey2

Copy link
Copy Markdown
Author

Still keen on this one. I will resolve the conflict with main shortly, and I am happy to make any changes you need.

Signed-off-by: SaiPisey2 <piseysai0202@gmail.com>
@SaiPisey2

Copy link
Copy Markdown
Author

Merged main in to resolve the conflict. The tests now use ModelConfigReference (from #3604). Go and Python tests and make lint pass.

@github-actions github-actions Bot removed the stale This issue or PR has become stale label Nov 28, 2026
@EItanya
EItanya enabled auto-merge November 30, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Ollama ModelConfigs in one agent share a single host

2 participants