简体中文
cURL
curl --request PATCH \ --url https://geekai.co/api/v1/agent/{uuid}/embed \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form embed_files=@example-file
{ "message": "文件上传成功,正在处理中", "data": { "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "pending", "progress": 50 } }
上传并嵌入训练文件到指定智能体的知识库中,支持多种文件格式和批量上传。
curl --location --request PATCH 'https://geekai.co/api/v1/agent/be9062c1-68d5-48ee-b74e-fab6d864bc29/embed' \ --header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \ --form 'embed_files=@"/E:/文档/极客智坊/训练文件1.txt"' \ --form 'embed_files=@"/E:/文档/极客智坊/训练文件2.txt"' \ --form 'embed_files=@"/E:/文档/极客智坊/训练文件3.txt"'
JWT认证token
资源唯一标识符
成功响应
The response is of type object.
object