curl --request POST \
--url https://open.bigmodel.cn/api/llm-application/open/document/upload_url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"upload_detail": [
{
"url": "<string>",
"knowledge_type": 123,
"custom_separator": [
"<string>"
],
"sentence_size": 123,
"callback_url": "<string>",
"callback_header": {}
}
],
"knowledge_id": "<string>"
}'
{
"data": {
"successInfos": [
{
"documentId": "122121212",
"url": "xxx.com"
},
{
"documentId": "12121212121",
"url": "xxx.com"
}
],
"failedInfos": [
{
"url": "xxx.com",
"failReason": "不支持的文档类型"
}
]
},
"code": 200,
"message": "请求成功",
"timestamp": 1689649504996
}
用于创建个人知识 web页面。
curl --request POST \
--url https://open.bigmodel.cn/api/llm-application/open/document/upload_url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"upload_detail": [
{
"url": "<string>",
"knowledge_type": 123,
"custom_separator": [
"<string>"
],
"sentence_size": 123,
"callback_url": "<string>",
"callback_header": {}
}
],
"knowledge_id": "<string>"
}'
{
"data": {
"successInfos": [
{
"documentId": "122121212",
"url": "xxx.com"
},
{
"documentId": "12121212121",
"url": "xxx.com"
}
],
"failedInfos": [
{
"url": "xxx.com",
"failReason": "不支持的文档类型"
}
]
},
"code": 200,
"message": "请求成功",
"timestamp": 1689649504996
}
使用以下格式进行身份验证:Bearer <your api key>
请求成功
The response is of type object
.
Was this page helpful?