跳到主要内容

功能说明​

生成智能回复

请求说明​

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

请求类型:POST

请求限频:100次/秒

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

Content-Type:application/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"
}
}

响应码​

响应码说明