diff --git a/src/components/settings/ProvidersSettings.tsx b/src/components/settings/ProvidersSettings.tsx index 9f66a415d..1719d590e 100644 --- a/src/components/settings/ProvidersSettings.tsx +++ b/src/components/settings/ProvidersSettings.tsx @@ -291,7 +291,7 @@ function ProviderCard({ onValidateKey, devModeUnlocked, }: ProviderCardProps) { - const { t } = useTranslation('settings'); + const { t, i18n } = useTranslation('settings'); const { account, vendor, status } = item; const [newKey, setNewKey] = useState(''); const [baseUrl, setBaseUrl] = useState(account.baseUrl || ''); @@ -513,6 +513,21 @@ function ProviderCard({ {isEditing && (
+ {account.vendorId === 'custom' && ( +
+ + {t('aiProviders.dialog.customDoc')} + + +
+ )} {canEditModelConfig && (

{t('aiProviders.sections.model')}

@@ -738,7 +753,7 @@ function AddProviderDialog({ onValidateKey, devModeUnlocked, }: AddProviderDialogProps) { - const { t } = useTranslation('settings'); + const { t, i18n } = useTranslation('settings'); const [selectedType, setSelectedType] = useState(null); const [name, setName] = useState(''); const [apiKey, setApiKey] = useState(''); @@ -1061,6 +1076,22 @@ function AddProviderDialog({ > {t('aiProviders.dialog.change')} + {selectedType === 'custom' && ( + <> + | + + {t('aiProviders.dialog.customDoc')} + + + + )}
diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.json index 8227013bb..7e2ca27e2 100644 --- a/src/i18n/locales/en/settings.json +++ b/src/i18n/locales/en/settings.json @@ -61,6 +61,7 @@ "change": "Change provider", "add": "Add Provider", "save": "Save", + "customDoc": "Documentation", "validate": "Validate" }, "card": { diff --git a/src/i18n/locales/ja/settings.json b/src/i18n/locales/ja/settings.json index 9d8884daa..4ea25c863 100644 --- a/src/i18n/locales/ja/settings.json +++ b/src/i18n/locales/ja/settings.json @@ -60,6 +60,7 @@ "change": "プロバイダーを変更", "add": "プロバイダーを追加", "save": "保存", + "customDoc": "ドキュメント", "validate": "検証" }, "card": { @@ -234,4 +235,4 @@ "docs": "公式サイト", "github": "GitHub" } -} +} \ No newline at end of file diff --git a/src/i18n/locales/zh/settings.json b/src/i18n/locales/zh/settings.json index 015404a0e..a66586df3 100644 --- a/src/i18n/locales/zh/settings.json +++ b/src/i18n/locales/zh/settings.json @@ -61,6 +61,7 @@ "change": "更换提供商", "add": "添加提供商", "save": "保存", + "customDoc": "查看文档", "validate": "验证" }, "card": {