curl --request POST \
--url https://open.bigmodel.cn/api/llm-application/open/document/upload_document/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form files=@example-file
{
"data": {
"successInfos": [
{
"documentId": "<string>",
"fileName": "<string>"
}
],
"failedInfos": [
{
"fileName": "<string>",
"failReason": "<string>"
}
]
},
"code": 123,
"message": "<string>",
"timestamp": 123
}
向指定知识库上传文档,支持多种切片方式和回调。
curl --request POST \
--url https://open.bigmodel.cn/api/llm-application/open/document/upload_document/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form files=@example-file
{
"data": {
"successInfos": [
{
"documentId": "<string>",
"fileName": "<string>"
}
],
"failedInfos": [
{
"fileName": "<string>",
"failReason": "<string>"
}
]
},
"code": 123,
"message": "<string>",
"timestamp": 123
}
使用以下格式进行身份验证:Bearer <your api key>
知识库id
业务处理成功
The response is of type object
.
Was this page helpful?