mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-21 03:10:50 +00:00
perf: completion chatId
This commit is contained in:
@@ -22,7 +22,7 @@ export const getChatHistory = (data: RequestPaging & { appId?: string }) =>
|
||||
/**
|
||||
* 删除一条历史记录
|
||||
*/
|
||||
export const delChatHistoryById = (id: string) => GET(`/chat/removeHistory?id=${id}`);
|
||||
export const delChatHistoryById = (chatId: string) => DELETE(`/chat/removeHistory`, { chatId });
|
||||
|
||||
/**
|
||||
* get history quotes
|
||||
|
@@ -78,6 +78,7 @@ export const streamFetch = ({
|
||||
onMessage(answer);
|
||||
responseText += answer;
|
||||
} else if (item.event === sseResponseEventEnum.appStreamResponse) {
|
||||
console.log(data);
|
||||
} else if (item.event === sseResponseEventEnum.error) {
|
||||
errMsg = getErrText(data, '流响应错误');
|
||||
}
|
||||
|
1
client/src/api/response/chat.d.ts
vendored
1
client/src/api/response/chat.d.ts
vendored
@@ -20,7 +20,6 @@ export interface InitChatResponse {
|
||||
|
||||
export interface InitShareChatResponse {
|
||||
userAvatar: string;
|
||||
maxContext: number;
|
||||
app: {
|
||||
variableModules?: VariableItemType[];
|
||||
welcomeText?: string;
|
||||
|
Reference in New Issue
Block a user