修改会话的bug和回显以及滚动加载

This commit is contained in:
2026-08-14 21:41:32 +08:00
parent 315d05c3ea
commit a65b898680
6 changed files with 320 additions and 137 deletions
+11 -1
View File
@@ -19,7 +19,7 @@ export interface VOSessionInfoResult {
status: number; // 1-运行中, 2-成功, 3-失败
flowId: string;
requestParams: Record<string, any>;
resultFileUrl: string;
resultContent: string; // 回复文本内容(非文件地址)
totalTokens: number;
totalFee: number;
errorMsg: string;
@@ -52,3 +52,13 @@ export function deleteSessionV2(id: string, requestOptions?: RequestOptions) {
requestOptions,
});
}
// 删除会话内的对话记录(AI 回复 / 用户问题单条或多条),传 Ids 数组,每项为 { id, type }
export function deleteSessionRecord(ids: { id: number; type: string }[], requestOptions?: RequestOptions) {
return request({
url: '/ai-agent/session/deleteRecord',
method: 'post',
data: { ids },
requestOptions,
});
}