cURL
curl --request POST \ --url http://localhost:5300/api/v1/files/documents \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <api-key>' \ --form file='@example-file'
{ "code": 0, "data": { "file_id": "<string>" } }
上传文档文件,大小限制 10MB。上传后可将 file_id 用于知识库关联。
Documentation IndexFetch the complete documentation index at: https://docs.langbot.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
Use this file to discover all available pages before exploring further.
文档文件
上传成功
0
Show child attributes