fix(webui): hide model choices when OAuth authorization expires
This commit is contained in:
1 parent
1bfb4f6fc7
commit
eaa0e290d0
3 files changed
+103
-57
No files matched your search
+8
-6
@@ -5,12 +5,14 @@ Use this page when the first reply fails because of provider/model mismatch, or
|
||||
For normal local setup, open **Settings → Models** in the WebUI to add provider credentials, create a model preset, and select the active model. Use the JSON below for manual deployments, local endpoints, provider-specific fields, or diagnosis.
|
||||
|
||||
The model picker fetches online catalogs for OpenAI Codex, xAI Grok, and GitHub
|
||||
Copilot. If a refresh fails, it labels cached or built-in lists as potentially
|
||||
out of date. An explicit authorization failure offers **Sign in again** using
|
||||
the existing provider login flow; successful WebUI sign-in clears the catalog
|
||||
cache. Network, rate-limit, and service failures instead ask you to try again
|
||||
later (failed refreshes are cached briefly). Existing presets and manual model
|
||||
IDs remain available. A successful chat may have used a fallback preset and
|
||||
Copilot. An explicit authorization failure hides the picker’s search and model
|
||||
list and offers **Sign in again** using the existing provider login flow.
|
||||
Successful WebUI sign-in clears the catalog cache and restores model selection.
|
||||
Existing presets, selected models, and unsaved preset details are preserved.
|
||||
Network, rate-limit, and service failures instead keep cached or built-in lists
|
||||
available, label them as potentially out of date, and ask you to try again later
|
||||
(failed refreshes are cached briefly). Manual model IDs remain available for
|
||||
these temporary failures. A successful chat may have used a fallback preset and
|
||||
does not prove that the selected provider's authorization is still valid.
|
||||
When a live chat uses a fallback model, a dismissible notice above the composer
|
||||
names that model and links to model settings. If the provider explicitly rejected
|
||||
|
||||
Reference in new issue
Block a user