diff --git a/service/src/chatgpt/index.ts b/service/src/chatgpt/index.ts index c6fea55e..f351b6f3 100644 --- a/service/src/chatgpt/index.ts +++ b/service/src/chatgpt/index.ts @@ -130,7 +130,7 @@ async function chatReplyProcess(options: RequestOptions) { export function initAuditService(audit: AuditConfig) { if (!audit || !audit.options || !audit.options.apiKey || !audit.options.apiSecret) - throw new Error('未配置 | Not configured.') + return const Service = textAuditServices[audit.provider] auditService = new Service(audit.options) } diff --git a/src/components/common/Setting/Audit.vue b/src/components/common/Setting/Audit.vue index 00106af7..43b3ad8c 100644 --- a/src/components/common/Setting/Audit.vue +++ b/src/components/common/Setting/Audit.vue @@ -113,7 +113,7 @@ onMounted(() => { @input="(val) => { if (config && config.options) config.options.label = val }" /> -
+
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 56d12c8a..c159e2f5 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -73,7 +73,7 @@ export default { name: '名称', description: '描述', role: '角色设定', - temperature: 'Temperature', + temperature: '思维发散程度', saveUserInfo: '保存用户信息', top_p: 'Top_p', chatHistory: '聊天记录', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 02391e0b..048e50ff 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -73,7 +73,7 @@ export default { name: '名稱', description: '描述', role: '角色設定', - temperature: 'Temperature', + temperature: '思维发散程度', top_p: 'Top_p', saveUserInfo: '保存用户資訊', chatHistory: '紀錄',