perf: The assistant is optimized for manual data source selection

This commit is contained in:
fit2cloud-chenyw
2026-01-15 09:20:33 +08:00
committed by fit2cloud-chenyw
parent fc6a740a3f
commit 6c7fd8c00f
13 changed files with 140 additions and 47 deletions
+2 -2
View File
@@ -330,8 +330,8 @@ export const chatApi = {
startChat: (data: any): Promise<ChatInfo> => {
return request.post('/chat/start', data)
},
startAssistantChat: (): Promise<ChatInfo> => {
return request.post('/chat/assistant/start')
startAssistantChat: (data?: any): Promise<ChatInfo> => {
return request.post('/chat/assistant/start', Object.assign({ origin: 2 }, data))
},
renameChat: (chat_id: number | undefined, brief: string): Promise<string> => {
return request.post('/chat/rename', { id: chat_id, brief: brief })