获取所有模型
GET /studio/rag/data/v1/conversation:allModel
请求头(Request Header)
Authorization
可以使用如下两种Header
- 动态生成 Authorization Header, 参考认证(authentication)
-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)
名称 | 类型 | 描述 |
---|---|---|
models | array[object] | 模型的列表. |
其中,models
的参数如下
名称 | 类型 | 描述 |
---|---|---|
id | string | 模型ID. |
display_name | string | 显示名称. |
owner | string | 模型的拥有者. |
响应示例(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": ""
}
]