查看 assistant 列表
开发环境
开发环境
GET
/v1/assistants/list
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1/assistants/list?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{"limit":100,"order":"desc"}'
响应示例响应示例
{
"object": "list",
"data": [
{
"id": "asst_abc123",
"object": "assistant",
"created_at": 1703239179,
"name": "function",
"description": "代码机器人",
"model": "my_model",
"instructions": "Follow the instructions carefully",
"tools": [
{
"type": "code_interpreter"
}
],
"file_ids": [
"${file id}"
],
"metadata": {
"key1": "value1",
"key2": "value2"
},
"rolemeta": {},
"status": "available"
},
{
"id": "asst_abc123",
"object": "assistant",
"created_at": 1703239487,
"name": "function",
"description": "代码机器人",
"model": "my_model",
"instructions": "Follow the instructions carefully",
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "get weather",
"parameters": {
"type": "object",
"required": [
"city"
],
"properties": {
"city": {
"type": "string"
}
}
}
}
},
{
"type": "code_interpreter"
}
],
"file_ids": [
"${file id}"
],
"metadata": {
"key1": "value1",
"key2": "value2"
},
"rolemeta": {},
"status": "available"
}
],
"has_more": false,
"first_id": "asst_abc456",
"last_id": "asst_abc123",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
请求参数
Query 参数
GroupId
string
用户所属的组
示例值:
${GroupId}
Header 参数
Authorization
string
必需
示例值:
Bearer ${API_KEY}
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-01-03 08:33:55