修改会话的bug和回显以及滚动加载
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user