助理 API
助手对话
Changed on与AI助手进行对话,支持流式和同步模式。点击 Try it 按钮可快速试用。
post/paas/v4/assistant
Request
- Base URLhttps://open.bigmodel.cn/api
- AuthHTTP bearer
Request body
Example request
{
"messages": [
{
"role": "user",
"content": "你好"
}
]
}Response
业务处理成功
Example response
{
"choices": [
{
"message": {
"role": "assistant"
}
}
]
}Changes
- info
endpoint added
- info