Authorizations
使用以下格式进行身份验证:Bearer <your api key>
Path Parameters
文档id
🚀 GLM-4.6 代码编程专享计划 • 限时优惠 Coding Plan ➞
curl --request GET \
--url https://open.bigmodel.cn/api/llm-application/open/document/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "12121212121212",
"knowledge_type": 1,
"custom_separator": [
"\n"
],
"sentence_size": 300,
"length": 0,
"word_num": 100,
"name": "",
"url": "",
"embedding_stat": 0,
"failInfo": {
"embedding_code": 10002,
"embedding_msg": "字数超出限制"
}
},
"code": 200,
"message": "请求成功",
"timestamp": 1689649504996
}
根据文档ID
获取文档详情。
curl --request GET \
--url https://open.bigmodel.cn/api/llm-application/open/document/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "12121212121212",
"knowledge_type": 1,
"custom_separator": [
"\n"
],
"sentence_size": 300,
"length": 0,
"word_num": 100,
"name": "",
"url": "",
"embedding_stat": 0,
"failInfo": {
"embedding_code": 10002,
"embedding_msg": "字数超出限制"
}
},
"code": 200,
"message": "请求成功",
"timestamp": 1689649504996
}
使用以下格式进行身份验证:Bearer <your api key>
文档id
请求成功
Hide child attributes
文档id
文档切片类型
自定义分隔符
切片字数
文档长度
字数
文档名称
文档URL
向量化状态
状态码
返回信息
时间戳