Repository navigation
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. |
|
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>
|
Merged main in to resolve the conflict. The tests now use |
|
Thanks @EItanya! |
Signed-off-by: SaiPisey2 <piseysai0202@gmail.com>
Head branch was pushed to by a user without write access
|
Merged main again to clear the new conflict. #3345 and #3500 added messages to |
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