feat(providers): self-hosted setup in Settings after onboarding (#3260)#3406
Open
pamnard wants to merge 4 commits into
Open
feat(providers): self-hosted setup in Settings after onboarding (#3260)#3406pamnard wants to merge 4 commits into
pamnard wants to merge 4 commits into
Conversation
5 tasks
3094377 to
2161266
Compare
…uena#3260) Add Settings → Providers cards for Ollama, LM Studio, and custom OpenAI-compatible endpoints with base URL probe, model selection, and optional API key. Persist via POST /api/providers/self-hosted without rerunning onboarding; keep local Ollama independent of OLLAMA_API_KEY used for Ollama Cloud (nesquena#1410).
Fix ja/zh/tr/it/pt/fr/zh-Hant locale parity tests after providers panel keys were only added to English fallback blocks.
Split self-hosted cards onto a separate filter line so panels.js still contains filter(p=>p.configurable||p.is_oauth||p.is_custom) (nesquena#1202, nesquena#3260).
2161266 to
46df172
Compare
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.
Summary
ollama,lmstudio, andcustomwith base URL, Test connection (POST /api/onboarding/probe), model picker, and optional API key.POST /api/providers/self-hostedpersistsconfig.yamlmodelsection post-onboarding (no wizard / noconfirm_overwritegate); invalidates model cache like provider key updates (bug(providers): removed provider still appears in model dropdowns until server restart #1539)._PROVIDER_ENV_VAR(bug(providers): Ollama (local) shows 'API key configured' when only Ollama Cloud key is set — both providers share OLLAMA_API_KEY in _PROVIDER_ENV_VAR #1410);ollama-cloudremains the API-key card.Test plan
pytest tests/test_issue3260_self_hosted_providers_settings.pypytest tests/test_provider_management.py::TestIssue1410OllamaEnvVarBleedpytest tests/test_issue1500_lmstudio_env_var_alignment.pyonboarding_completed: true, open Settings → Providers, configure Ollama base URL + model, confirm composer picker updates without restartCloses #3260