Skip to main content

功能说明

生成智能回复

请求说明

请求鉴权:接口需要增加验证 Header,请查看 鉴权说明

请求类型POST

请求限频100次/秒

请求地址:https://请求域名/jim/assistants/answer

Content-Typeapplication/json

请求参数

参数数据类型是否必填参数说明
conver_idstring会话id
channel_typeint会话类型,1:单聊;2:群聊
prompt_idstring提示词id
msgsarray会话中最新的n条消息

请求示例

POST /jim/assistants/answer HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
"conver_id":"xx",
"channel_type":1,
"prompt_id":"xxx",
"msgs":[
{
"sender_id":"xx",
"content":"xxxxx",
"msg_time":1741234567893
}
]
}

响应示例

{
"code":0,
"msg":"sucess",
"data":{
"answer":"xxxxxxxxx"
}
}

响应码

响应码说明