diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 7c08790a..b5c2f45b 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1242,6 +1242,18 @@ export default { 'Used to increase the rate limit threshold when plugins access Github API,it is recommended to configure, otherwise plugins may not work properly', ocrHost: 'OCR Server', ocrHostHint: 'Used for site check-in, updating site cookies and other captcha recognition', + aiAgent: 'Enable AI Assistant', + aiAgentEnable: 'Enable AI Assistant', + aiAgentEnableHint: 'Enable AI assistant functionality, requires LLM configuration', + llmProvider: 'LLM Provider', + llmProviderHint: 'Select the LLM service provider to use', + llmModel: 'LLM Model Name', + llmModelHint: 'Specify the LLM model to use, such as gpt-3.5-turbo, deepseek-chat, etc.', + llmApiKey: 'LLM API Key', + llmApiKeyHint: 'API key from the LLM service provider for authentication', + llmApiKeyPlaceholder: 'Please enter API key', + llmBaseUrl: 'LLM Base URL', + llmBaseUrlHint: 'Base URL for LLM API, used for custom API endpoints', advancedSettings: 'Advanced Settings', advancedSettingsDesc: 'System advanced settings, only need to be adjusted in special cases', downloaders: 'Downloaders', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 69fbac96..a256723e 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1238,6 +1238,18 @@ export default { githubTokenHint: '用于提高插件等访问Github API时的限流阈值,建议配置,否则插件可能无法正常使用', ocrHost: '验证码识别服务器', ocrHostHint: '用于站点签到、更新站点Cookie等识别验证码', + aiAgent: '启用智能助手', + aiAgentEnable: '启用智能助手', + aiAgentEnableHint: '启用后可使用智能助手功能,需要配置LLM相关参数', + llmProvider: 'LLM提供商', + llmProviderHint: '选择使用的LLM服务提供商', + llmModel: 'LLM模型名称', + llmModelHint: '指定使用的LLM模型,如gpt-3.5-turbo、deepseek-chat等', + llmApiKey: 'LLM API密钥', + llmApiKeyHint: 'LLM服务提供商的API密钥,用于身份验证', + llmApiKeyPlaceholder: '请输入API密钥', + llmBaseUrl: 'LLM基础URL', + llmBaseUrlHint: 'LLM API的基础URL地址,用于自定义API端点', advancedSettings: '高级设置', advancedSettingsDesc: '系统进阶设置,特殊情况下才需要调整', downloaders: '下载器', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 88e7b47a..4f6a4d8c 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -1226,6 +1226,18 @@ export default { githubTokenHint: '用於提高插件等訪問Github API時的限流閾值,建議配置,否則插件可能無法正常使用', ocrHost: '驗證碼識別服務器', ocrHostHint: '用於站點簽到、更新站點Cookie等識別驗證碼', + aiAgent: '啟用智能助手', + aiAgentEnable: '啟用智能助手', + aiAgentEnableHint: '啟用後可使用智能助手功能,需要配置LLM相關參數', + llmProvider: 'LLM提供商', + llmProviderHint: '選擇使用的LLM服務提供商', + llmModel: 'LLM模型名稱', + llmModelHint: '指定使用的LLM模型,如gpt-3.5-turbo、deepseek-chat等', + llmApiKey: 'LLM API密鑰', + llmApiKeyHint: 'LLM服務提供商的API密鑰,用於身份驗證', + llmApiKeyPlaceholder: '請輸入API密鑰', + llmBaseUrl: 'LLM基礎URL', + llmBaseUrlHint: 'LLM API的基礎URL地址,用於自定義API端點', advancedSettings: '高級設置', advancedSettingsDesc: '系統進階設置,特殊情況下才需要調整', downloaders: '下載器', diff --git a/src/views/setting/AccountSettingSystem.vue b/src/views/setting/AccountSettingSystem.vue index b9b3b0ce..09f3386a 100644 --- a/src/views/setting/AccountSettingSystem.vue +++ b/src/views/setting/AccountSettingSystem.vue @@ -31,6 +31,11 @@ const SystemSettings = ref({ GITHUB_TOKEN: null, OCR_HOST: null, CUSTOMIZE_WALLPAPER_API_URL: null, + AI_AGENT_ENABLE: false, + LLM_PROVIDER: 'deepseek', + LLM_MODEL: 'deepseek-chat', + LLM_API_KEY: null, + LLM_BASE_URL: 'https://api.deepseek.com', }, // 高级系统设置 Advanced: { @@ -607,6 +612,65 @@ onDeactivated(() => { /> + + + + {{ t('setting.system.aiAgent') }} + + + + + + + + + + + + + + + + +