数据回调 callback接口
开发中POST
http://127.0.0.1:8081/callback数据回调
data 传入的json
data_json = {
"type": "数据类型(llm)",
"data": {
"type": "LLM类型",
"username": "用户名",
"content_type": "内容的类型(question/answer)",
"content": "回复内容",
"timestamp": "时间戳"
}
}
return:
{"code": 200, "message": "成功"}
{"code": -1, "message": "失败"}
请求参数
Body 参数application/json
object {0}
示例
{}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
示例
{
"code": 0,
"message": "string"
}
最后修改时间: 2 个月前