mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 11:43:57 +08:00
feat: differentiate fetch models error messages by failure type
Distinguish between missing API key, missing endpoint, auth failure, unsupported provider (404/405), and timeout errors instead of showing a generic failure toast for all cases.
This commit is contained in:
@@ -795,7 +795,13 @@
|
||||
"fetchingModels": "Fetching...",
|
||||
"fetchModelsSuccess": "Found {{count}} models",
|
||||
"fetchModelsFailed": "Failed to fetch models",
|
||||
"fetchModelsEmpty": "No models found"
|
||||
"fetchModelsEmpty": "No models found",
|
||||
"fetchModelsNeedApiKey": "Please fill in API Key first",
|
||||
"fetchModelsNeedEndpoint": "Please fill in API endpoint first",
|
||||
"fetchModelsNeedConfig": "Please fill in API endpoint and API Key first",
|
||||
"fetchModelsAuthFailed": "API Key is invalid or lacks permission",
|
||||
"fetchModelsNotSupported": "This provider does not support fetching model list",
|
||||
"fetchModelsTimeout": "Request timed out, please check network connection"
|
||||
},
|
||||
"copilot": {
|
||||
"authSection": "GitHub Copilot Authentication",
|
||||
|
||||
Reference in New Issue
Block a user