liudong
2024-08-19 7d1e44c728a8e436fede1ceb8a62b5c4fb848b09
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);
}