| | |
| | | // 获取解析方法列表 |
| | | export function getParseMethodsListApi() { |
| | | return axios.get<ISessionListResult>('/api/v1/user/parse-methods'); |
| | | } |
| | | } |
| | | |
| | | // 上传v1/document/upload_and_parse |
| | | export function uploadAndParse(params) { |
| | | const config = { |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded', |
| | | // token: token, |
| | | }, |
| | | }; |
| | | return axios.post('/api/v1/document/upload_and_parse', params, config); |
| | | } |
| | | |
| | | //高级会话 |
| | | export function seniorAgentApi(params) { |
| | | return axios.get<ISessionListResult>( |
| | | '/api/v1/advanced-agent/list', |
| | | params |
| | | ); |
| | | } |