wip: when creating a project fails, check for auth errors with the api call to feed back to the user what/why we had an issue

This commit is contained in:
sam committed 2025-09-23 14:34:50 +07:00
1 parent f9f72e6a50
commit c9073bb4bd
3 files changed
+73 -7

No files matched your search

+20
View File
@@ -256,6 +256,11 @@ const resources = {
recentlyUsed: 'Recently Used',
errorLoadingModels: 'Error Loading Models',
// API Authentication Errors
apiAuthenticationFailed: 'API Authentication Failed',
invalidApiKey: 'Invalid API key for {{provider}}. Please check your API key in Settings.',
checkApiKeySettings: 'Check API Key Settings',
// Context and Cost
contextUsage: 'Context usage: {{tokens}} / {{total}} tokens ({{percentage}}%)',
totalCostSession: 'Total cost for this chat session',
@@ -552,6 +557,11 @@ const resources = {
recentlyUsed: 'Usados Recentemente',
errorLoadingModels: 'Erro ao Carregar Modelos',
// API Authentication Errors
apiAuthenticationFailed: 'Falha na Autenticação da API',
invalidApiKey: 'Chave de API inválida para {{provider}}. Verifique sua chave de API nas Configurações.',
checkApiKeySettings: 'Verificar Configurações da Chave de API',
// Context and Cost
contextUsage: 'Uso de contexto: {{tokens}} / {{total}} tokens ({{percentage}}%)',
totalCostSession: 'Custo total para esta sessão de chat',
@@ -848,6 +858,11 @@ const resources = {
recentlyUsed: '最近使用',
errorLoadingModels: '加载模型时出错',
// API Authentication Errors
apiAuthenticationFailed: 'API身份验证失败',
invalidApiKey: '{{provider}}的API密钥无效。请在设置中检查您的API密钥。',
checkApiKeySettings: '检查API密钥设置',
// Context and Cost
contextUsage: '上下文使用:{{tokens}} / {{total}} 令牌 ({{percentage}}%)',
totalCostSession: '此聊天会话的总费用',
@@ -1144,6 +1159,11 @@ const resources = {
recentlyUsed: 'An yi amfani da su kwanan nan',
errorLoadingModels: 'Kuskure wajen Lodin Samfura',
// API Authentication Errors
apiAuthenticationFailed: 'Gazawar Tabbatarwar API',
invalidApiKey: 'Maɓallin API na {{provider}} ba daidai ba ne. Da fatan za a duba maɓallin API a cikin Saitunan.',
checkApiKeySettings: 'Duba Saitunan Maɓallin API',
// Context and Cost
contextUsage: 'Amfanin mahallin: {{tokens}} / {{total}} alamomi ({{percentage}}%)',
totalCostSession: 'Jimlar farashi don wannan zaman hira',