curl --location -g --request POST 'http://dev-cn.your-api-server.com/v1/assistants/create?GroupId=${GroupId}' \
--header 'Authorization: Bearer ${API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "my_model",
"name": "function",
"description": "代码机器人",
"instructions": "Follow the instructions carefully",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"tools": [
{"type":"code_interpreter"},
{"type":"web_search"}
]
}'
{
"id": "asst_abc123",
"object": "assistant",
"created_at": 1703244578,
"name": "function",
"description": "代码机器人",
"model": "my_model",
"instructions": "Follow the instructions carefully\n回答中若参考了函数返回结果中的信息,请在该句末尾用【1†source】【2†source】【3†source】的形式标注信息来源。严禁使用其他的引用格式(如[1],【1】,²等等)。",
"tools": [
{
"type": "code_interpreter"
},
{
"type": "web_search"
}
],
"file_ids": [],
"metadata": {
"key1": "value1",
"key2": "value2"
},
"rolemeta": {},
"status": "available",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}