From 7d1e44c728a8e436fede1ceb8a62b5c4fb848b09 Mon Sep 17 00:00:00 2001 From: liudong <liudong> Date: 星期一, 19 八月 2024 17:32:43 +0800 Subject: [PATCH] agent会话名称修改 --- src/api/session.ts | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/api/session.ts b/src/api/session.ts index ac886be..cd16412 100644 --- a/src/api/session.ts +++ b/src/api/session.ts @@ -20,9 +20,9 @@ } // 鏂板浼氳瘽 export function addSessionApi(params: any) { - return axios.get<ISessionListResult>( - '/api/getConId/kdwithai?platform=localragflow', - { params } + return axios.post<ISessionListResult>( + '/api/v1/conversation/set?platform=localragflow', + params ); } @@ -45,3 +45,14 @@ export function getDialogListApi() { return axios.get<ISessionListResult>('/api/dialog/list'); } + + +export function uploadWithoutKb(params) { + const config = { + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + // token: token, + }, + }; + return axios.post('/api/v1/document/upload_without_kb', params, config); +} \ No newline at end of file -- Gitblit v1.8.0