mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Create a conversation before uploading files in it #1880 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -19,6 +19,7 @@ const {
|
||||
createExternalConversation,
|
||||
getExternalConversation,
|
||||
completeExternalConversation,
|
||||
uploadAndParseExternal,
|
||||
} = api;
|
||||
|
||||
const methods = {
|
||||
@ -86,6 +87,10 @@ const methods = {
|
||||
url: completeExternalConversation,
|
||||
method: 'post',
|
||||
},
|
||||
uploadAndParseExternal: {
|
||||
url: uploadAndParseExternal,
|
||||
method: 'post',
|
||||
},
|
||||
} as const;
|
||||
|
||||
const chatService = registerServer<keyof typeof methods>(methods, request);
|
||||
|
||||
@ -30,6 +30,7 @@ const {
|
||||
web_crawl,
|
||||
knowledge_graph,
|
||||
document_infos,
|
||||
upload_and_parse,
|
||||
} = api;
|
||||
|
||||
const methods = {
|
||||
@ -136,6 +137,10 @@ const methods = {
|
||||
url: document_delete,
|
||||
method: 'delete',
|
||||
},
|
||||
upload_and_parse: {
|
||||
url: upload_and_parse,
|
||||
method: 'post',
|
||||
},
|
||||
};
|
||||
|
||||
const kbService = registerServer<keyof typeof methods>(methods, request);
|
||||
|
||||
Reference in New Issue
Block a user