| | |
| | | ); |
| | | } |
| | | |
| | | export function updateAgentConversation(data) { |
| | | return axios.post( |
| | | '/api/v1/canvas/update_agent_conversation', |
| | | data |
| | | ); |
| | | } |
| | | |
| | | |
| | | // 获取会话详情 |
| | | export function getAgentSessionDetailsApi(id: string) { |
| | | return axios.get( |
| | |
| | | document.body.appendChild(downloadElement); |
| | | downloadElement.click(); |
| | | document.body.removeChild(downloadElement); |
| | | }; |
| | | }; |
| | | |
| | | //多文件上传/api/v1/advanced-agent/upload |
| | | |
| | | export function agentUploadApi(params) { |
| | | const config = { |
| | | headers: { |
| | | 'Content-Type': 'application/x-www-form-urlencoded', |
| | | // token: token, |
| | | }, |
| | | }; |
| | | return axios.post('/api/v1/advanced-agent/upload', params, config); |
| | | } |