70 lines
1.0 KiB
Plaintext
70 lines
1.0 KiB
Plaintext
{
|
|
"name":"minimax",
|
|
"chat":{
|
|
"url":"https://api.minimax.chat/v1/text/chatcompletion_pro",
|
|
"method":"POST",
|
|
"chunk_match":"data: (.*)",
|
|
"chunk_filter": {
|
|
"name":"reply",
|
|
"op":"!=",
|
|
"value":"",
|
|
"field":"content"
|
|
},
|
|
"headers":[
|
|
{
|
|
"name":"Content-Type",
|
|
"value":"application/json"
|
|
},
|
|
{
|
|
"name":"Authorization",
|
|
"value":"Bearer ${apikey}"
|
|
}
|
|
],
|
|
"params":[
|
|
{
|
|
"name":"GroupId",
|
|
"value":"${groupid}"
|
|
}
|
|
],
|
|
"data":[
|
|
{
|
|
"name":"model",
|
|
"value":"${model}"
|
|
},
|
|
{
|
|
"name":"messages",
|
|
"value":"${messages}"
|
|
},
|
|
{
|
|
"name":"stream",
|
|
"value":true
|
|
},
|
|
{
|
|
"name":"bot_setting",
|
|
"value":[{
|
|
"bot_name":"MM助手",
|
|
"content":"MM助手"
|
|
}]
|
|
},
|
|
{
|
|
"name":"reply_constraints",
|
|
"value":{
|
|
"sender_type":"BOT",
|
|
"sender_name":"MM助手"
|
|
}
|
|
}
|
|
],
|
|
"resp":[
|
|
{
|
|
"name":"content",
|
|
"value":"choices[0].messages[0].text"
|
|
},
|
|
{
|
|
"name":"usage",
|
|
"value":"usage"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|