mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
fix: ai llm config i18n
This commit is contained in:
@@ -236,12 +236,12 @@ const SettingsPage = () => {
|
||||
<Key className="h-4 w-4 text-indigo-600 dark:text-indigo-400" />
|
||||
{t("dashboard.settings.ai.doubao.apiKey")}
|
||||
<a
|
||||
href="https://www.doubao.com/"
|
||||
href="https://console.volcengine.com/ark"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-xs text-indigo-600 dark:text-indigo-400 hover:text-indigo-700 dark:hover:text-indigo-300 hover:underline inline-flex items-center"
|
||||
>
|
||||
{t("dashboard.settings.aiConfig.apiKey.description")}
|
||||
{t("dashboard.settings.ai.doubao.description")}
|
||||
<ExternalLink className="h-3 w-3 ml-1" />
|
||||
</a>
|
||||
</Label>
|
||||
@@ -251,9 +251,7 @@ const SettingsPage = () => {
|
||||
onChange={(e) => handleApiKeyChange(e, "doubao")}
|
||||
type="password"
|
||||
className="h-11 bg-white dark:bg-slate-900 border-slate-200 dark:border-slate-800 focus-visible:ring-indigo-500"
|
||||
placeholder={t(
|
||||
"dashboard.settings.aiConfig.apiKey.placeholder"
|
||||
)}
|
||||
placeholder={t("dashboard.settings.ai.doubao.apiKey")}
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
@@ -266,9 +264,7 @@ const SettingsPage = () => {
|
||||
value={doubaoModelId}
|
||||
onChange={(e) => handleModelIdChange(e, "doubao")}
|
||||
className="h-11 bg-white dark:bg-slate-900 border-slate-200 dark:border-slate-800 focus-visible:ring-indigo-500"
|
||||
placeholder={t(
|
||||
"dashboard.settings.aiConfig.modelId.placeholder"
|
||||
)}
|
||||
placeholder={t("dashboard.settings.ai.doubao.modelId")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -297,7 +293,7 @@ const SettingsPage = () => {
|
||||
rel="noopener noreferrer"
|
||||
className="text-xs text-indigo-600 dark:text-indigo-400 hover:text-indigo-700 dark:hover:text-indigo-300 hover:underline inline-flex items-center"
|
||||
>
|
||||
{t("dashboard.settings.aiConfig.apiKey.description")}
|
||||
{t("dashboard.settings.ai.deepseek.description")}
|
||||
<ExternalLink className="h-3 w-3 ml-1" />
|
||||
</a>
|
||||
</Label>
|
||||
@@ -307,12 +303,10 @@ const SettingsPage = () => {
|
||||
onChange={(e) => handleApiKeyChange(e, "deepseek")}
|
||||
type="password"
|
||||
className="h-11 bg-white dark:bg-slate-900 border-slate-200 dark:border-slate-800 focus-visible:ring-indigo-500"
|
||||
placeholder={t(
|
||||
"dashboard.settings.aiConfig.apiKey.placeholder"
|
||||
)}
|
||||
placeholder={t("dashboard.settings.ai.deepseek.apiKey")}
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
{/* <div className="space-y-2">
|
||||
<Label className="text-base flex items-center gap-2 text-slate-700 dark:text-slate-300">
|
||||
<Hash className="h-4 w-4 text-indigo-600 dark:text-indigo-400" />
|
||||
{t("dashboard.settings.ai.deepseek.modelId")}
|
||||
@@ -322,11 +316,9 @@ const SettingsPage = () => {
|
||||
value={deepseekModelId}
|
||||
onChange={(e) => handleModelIdChange(e, "deepseek")}
|
||||
className="h-11 bg-white dark:bg-slate-900 border-slate-200 dark:border-slate-800 focus-visible:ring-indigo-500"
|
||||
placeholder={t(
|
||||
"dashboard.settings.aiConfig.modelId.placeholder"
|
||||
)}
|
||||
placeholder={t("dashboard.settings.ai.deepseek.modelId")}
|
||||
/>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -66,20 +66,6 @@
|
||||
"changeFolder": "Change Folder",
|
||||
"selectFolder": "Select Folder"
|
||||
},
|
||||
"aiConfig": {
|
||||
"title": "AI Model Configuration",
|
||||
"description": "Configure Doubao Large Model to provide intelligent optimization and suggestions for your resume.",
|
||||
"apiKey": {
|
||||
"label": "Doubao API Key",
|
||||
"placeholder": "Please enter Doubao API Key",
|
||||
"description": "Obtain API Key from Doubao Open Platform"
|
||||
},
|
||||
"modelId": {
|
||||
"label": "Doubao Model ID",
|
||||
"placeholder": "Please enter Doubao Model ID",
|
||||
"description": "Obtain Model ID from Doubao Open Platform"
|
||||
}
|
||||
},
|
||||
"sync": {
|
||||
"title": "Sync Directory",
|
||||
"description": "Choose a folder to sync and backup your resumes.",
|
||||
@@ -91,11 +77,13 @@
|
||||
"selectedModel": "Select Model",
|
||||
"doubao": {
|
||||
"title": "Doubao Settings",
|
||||
"description": "Obtain API Key from Volcengine Platform",
|
||||
"apiKey": "API Key",
|
||||
"modelId": "Model ID"
|
||||
},
|
||||
"deepseek": {
|
||||
"title": "Deepseek Settings",
|
||||
"description": "Obtain API Key from Deepseek Open Platform",
|
||||
"apiKey": "API Key",
|
||||
"modelId": "Model ID"
|
||||
}
|
||||
|
||||
@@ -66,36 +66,24 @@
|
||||
"changeFolder": "更改文件夹",
|
||||
"selectFolder": "选择文件夹"
|
||||
},
|
||||
"aiConfig": {
|
||||
"title": "AI 模型配置",
|
||||
"description": "配置豆包大模型,让 AI 助手为你的简历提供智能优化和建议。",
|
||||
"apiKey": {
|
||||
"label": "豆包 API 密钥",
|
||||
"placeholder": "请输入豆包 API 密钥",
|
||||
"description": "在豆包开放平台获取 API 密钥"
|
||||
},
|
||||
"modelId": {
|
||||
"label": "豆包模型 ID",
|
||||
"placeholder": "请输入豆包模型 ID",
|
||||
"description": "在豆包开放平台获取模型 ID"
|
||||
}
|
||||
},
|
||||
"sync": {
|
||||
"title": "同步目录",
|
||||
"description": "选择一个文件夹来同步和备份您的简历。",
|
||||
"select": "选择文件夹"
|
||||
},
|
||||
"ai": {
|
||||
"title": "AI 模型配置",
|
||||
"title": "AI 配置",
|
||||
"description": "配置 AI 模型,让 AI 助手为你的简历提供智能优化和建议。",
|
||||
"selectedModel": "选择模型",
|
||||
"doubao": {
|
||||
"title": "豆包",
|
||||
"description": "在火山引擎获取 API 密钥",
|
||||
"apiKey": "API 密钥",
|
||||
"modelId": "模型 ID"
|
||||
},
|
||||
"deepseek": {
|
||||
"title": "Deepseek",
|
||||
"description": "在 Deepseek 开放平台获取 API 密钥",
|
||||
"apiKey": "API 密钥",
|
||||
"modelId": "模型 ID"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user