zhangxiao
2024-08-19 56136d7b32b1e5e794d01fc287b7ef417e77b99e
src/api/session.ts
@@ -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);
}