Conversation
Signed-off-by: SaiPisey2 <piseysai0202@gmail.com>
|
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. |
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>
Author
|
Merged main in to resolve the conflict. The tests now use |
EItanya
approved these changes
Nov 30, 2026
EItanya
enabled auto-merge
November 30, 2026 16:58
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.
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