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:
Jason
2026-04-03 23:40:49 +08:00
parent f200feebe4
commit 84998aa217
9 changed files with 119 additions and 18 deletions
+7 -1
View File
@@ -795,7 +795,13 @@
"fetchingModels": "取得中...",
"fetchModelsSuccess": "{{count}}件のモデルを取得",
"fetchModelsFailed": "モデル一覧の取得に失敗しました",
"fetchModelsEmpty": "モデルが見つかりません"
"fetchModelsEmpty": "モデルが見つかりません",
"fetchModelsNeedApiKey": "先に API Key を入力してください",
"fetchModelsNeedEndpoint": "先に API エンドポイントを入力してください",
"fetchModelsNeedConfig": "先に API エンドポイントと API Key を入力してください",
"fetchModelsAuthFailed": "API Key が無効か、権限がありません",
"fetchModelsNotSupported": "このプロバイダーはモデル一覧の取得に対応していません",
"fetchModelsTimeout": "リクエストがタイムアウトしました。ネットワーク接続を確認してください"
},
"copilot": {
"authSection": "GitHub Copilot 認証",