fix(ollama): hide API key for self-hosted, add docker host hint#4293
Open
andreahlert wants to merge 1 commit intoarchestra-ai:mainfrom
Open
fix(ollama): hide API key for self-hosted, add docker host hint#4293andreahlert wants to merge 1 commit intoarchestra-ai:mainfrom
andreahlert wants to merge 1 commit intoarchestra-ai:mainfrom
Conversation
Signed-off-by: André Ahlert <andre@aex.partners>
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.
Hide the API key input by default for Ollama and vLLM and gate it behind a "Server requires authentication" toggle, so users no longer feel pushed to type a dummy key.
Detect when the backend runs in a container (auto via /.dockerenv, /proc/1/cgroup, KUBERNETES_SERVICE_HOST, plus an ARCHESTRA_RUNNING_IN_CONTAINER override) and surface an inline alert with a one-click swap to http://host.docker.internal:11434/ when the user points Ollama at localhost from inside Docker.
The model fetcher rethrows connect errors with the same hint so non-UI consumers see it too.
Closes #4286.