From 9a96f981728256b3b1429eec994faa6e15f66d59 Mon Sep 17 00:00:00 2001 From: gaoziman <2942894660@qq.com> Date: Thu, 18 Dec 2025 11:28:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(types):=20=E6=9B=B4=E6=96=B0=20Setting?= =?UTF-8?q?s=20=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 cchUrl 和 cchApiKeyConfigured 字段 - 添加 defaultTools 工具列表字段 - 添加 enableThinking 思考模式开关 - 重命名部分字段以保持命名一致性 - 保留旧字段兼容性 --- src/types/index.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/types/index.ts b/src/types/index.ts index e5a3967..60d3460 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -40,12 +40,17 @@ export interface User { // 设置类型 export interface Settings { + cchUrl: string; + cchApiKeyConfigured: boolean; defaultModel: string; + defaultTools: string[]; theme: 'light' | 'dark' | 'system'; language: string; - webSearchEnabled: boolean; - codeExecutionEnabled: boolean; - chatHistoryEnabled: boolean; + enableThinking: boolean; + saveChatHistory: boolean; + // 旧字段(兼容) + enableWebSearch?: boolean; + enableCodeExecution?: boolean; } // 快捷操作类型