获取所有模型 | 大装置帮助中心
跳到主要内容

获取所有模型

GET /studio/rag/data/v1/conversation:allModel

请求头(Request Header)

Authorization 可以使用如下两种Header

-H "X-Date: $xdate" \
-H "Authorization: $auth"
  • 直接提供完整的 Authorization Header,可以通过浏览器的开发者工具DevTools查看并复制接口调用的完整信息
-H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InB...'

请求参数(Request Parameters)

请求示例(Request Example)

curl 'https://aidmp.cn-sh-01.sensecoreapi.cn/studio/rag/data/v1/conversation:allModel' \
-H "X-Date: $xdate" \
-H "Authorization: $auth" \
-X GET

响应(Response)

名称类型描述
modelsarray[object]模型的列表.

其中,models的参数如下

名称类型描述
idstring模型ID.
display_namestring显示名称.
ownerstring模型的拥有者.

响应示例(Response Example)

[
{
"id": "",
"display_name": "SenseChat-5",
"owner": ""
},
{
"id": "",
"display_name": "SenseChat",
"owner": ""
},
{
"id": "",
"display_name": "SenseChat-Turbo",
"owner": ""
},
{
"id": "",
"display_name": "SenseChat-5-Cantonese",
"owner": ""
}
]