refactor(types): 更新 Settings 类型定义
- 添加 cchUrl 和 cchApiKeyConfigured 字段 - 添加 defaultTools 工具列表字段 - 添加 enableThinking 思考模式开关 - 重命名部分字段以保持命名一致性 - 保留旧字段兼容性
This commit is contained in:
parent
77ef569d34
commit
9a96f98172
@ -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;
|
||||
}
|
||||
|
||||
// 快捷操作类型
|
||||
|
||||
Loading…
Reference in New Issue
Block a user