知识库查询
This commit is contained in:
@@ -225,7 +225,7 @@ export const chatApi = {
|
||||
* @returns Promise<ResultDomain<boolean>>
|
||||
*/
|
||||
async deleteConversation(conversationId: string): Promise<ResultDomain<boolean>> {
|
||||
const response = await api.delete<boolean>(`/ai/chat/conversation/${conversationId}`, {
|
||||
const response = await api.delete<boolean>(`/ai/chat/conversation/${conversationId}`,{}, {
|
||||
showLoading: false
|
||||
});
|
||||
return response.data;
|
||||
@@ -249,7 +249,7 @@ export const chatApi = {
|
||||
* @returns Promise<ResultDomain<AiMessage[]>>
|
||||
*/
|
||||
async listMessages(conversationId: string): Promise<ResultDomain<AiMessage>> {
|
||||
const response = await api.get<AiMessage>(`/ai/chat/conversation/${conversationId}/messages`, {
|
||||
const response = await api.get<AiMessage>(`/ai/chat/conversation/${conversationId}/messages`, {},{
|
||||
showLoading: false
|
||||
});
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user