mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-23 06:51:10 +08:00
fix: 增加默认assistant兜底
This commit is contained in:
@@ -419,7 +419,7 @@ export const aiApi = {
|
||||
/**
|
||||
* 创建 AI 对话
|
||||
*/
|
||||
createConversation: (sessionId: string, title?: string, assistantId?: string): Promise<AIConversation> => {
|
||||
createConversation: (sessionId: string, title?: string, assistantId: string): Promise<AIConversation> => {
|
||||
return ipcRenderer.invoke('ai:createConversation', sessionId, title, assistantId)
|
||||
},
|
||||
|
||||
@@ -709,9 +709,7 @@ export const assistantApi = {
|
||||
return ipcRenderer.invoke('assistant:update', id, updates)
|
||||
},
|
||||
|
||||
create: (
|
||||
config: Omit<AssistantConfigFull, 'id'>
|
||||
): Promise<{ success: boolean; id?: string; error?: string }> => {
|
||||
create: (config: Omit<AssistantConfigFull, 'id'>): Promise<{ success: boolean; id?: string; error?: string }> => {
|
||||
return ipcRenderer.invoke('assistant:create', config)
|
||||
},
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -358,7 +358,7 @@ interface AiApi {
|
||||
senderId?: number,
|
||||
keywords?: string[]
|
||||
) => Promise<{ messages: SearchMessageResult[]; hasMore: boolean }>
|
||||
createConversation: (sessionId: string, title?: string, assistantId?: string) => Promise<AIConversation>
|
||||
createConversation: (sessionId: string, title?: string, assistantId: string) => Promise<AIConversation>
|
||||
getConversations: (sessionId: string) => Promise<AIConversation[]>
|
||||
getConversation: (conversationId: string) => Promise<AIConversation | null>
|
||||
updateConversationTitle: (conversationId: string, title: string) => Promise<boolean>
|
||||
|
||||
Reference in New Issue
Block a user