yinbangzhong
2024-08-19 9650fe79e821c69c04bbc27ee32767f7c718a288
src/api/session.ts
@@ -20,8 +20,8 @@
}
// 新增会话
export function addSessionApi(params: any) {
  return axios.get<ISessionListResult>(
    '/api/getConId/kdwithai?platform=localragflow',
  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);
}