mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-22 22:30:22 +08:00
fix: 第三方/本地服务编辑弹窗丢失多个自定义模型
This commit is contained in:
@@ -172,6 +172,7 @@ export interface AIServiceConfigDisplay {
|
||||
maxTokens?: number
|
||||
disableThinking?: boolean
|
||||
isReasoningModel?: boolean
|
||||
customModels?: Array<{ id: string; name: string }>
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
}
|
||||
@@ -608,6 +609,7 @@ export const llmApi = {
|
||||
maxTokens?: number
|
||||
disableThinking?: boolean
|
||||
isReasoningModel?: boolean
|
||||
customModels?: Array<{ id: string; name: string }>
|
||||
}): Promise<{ success: boolean; config?: AIServiceConfigDisplay; error?: string }> => {
|
||||
return ipcRenderer.invoke('llm:addConfig', config)
|
||||
},
|
||||
@@ -626,6 +628,7 @@ export const llmApi = {
|
||||
maxTokens?: number
|
||||
disableThinking?: boolean
|
||||
isReasoningModel?: boolean
|
||||
customModels?: Array<{ id: string; name: string }>
|
||||
}
|
||||
): Promise<{ success: boolean; error?: string }> => {
|
||||
return ipcRenderer.invoke('llm:updateConfig', id, updates)
|
||||
|
||||
Reference in New Issue
Block a user