{
"type": 1,
"channel": "openai",
"logo": "http://xx.cn/openai.png",
"name": "OpenAi",
"is_enable": 0,
"configs": {
"context_num": 3,
"temperature": 1.0,
"presence_penalty": 0,
"frequency_penalty": 0,
"agency_api": "",
"global_directives": ""
},
"models": [
{"name": "gpt3.5-turbo", "alias": "GPT3.5-turbo", "price": 0, "status": 0, "sort": 0}
]
}
curl --location --request POST '/adminapi/setting.ai.models/add' \
--header 'token: {{admin-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 1,
"channel": "openai",
"logo": "http://xx.cn/openai.png",
"name": "OpenAi",
"is_enable": 0,
"configs": {
"context_num": 3,
"temperature": 1.0,
"presence_penalty": 0,
"frequency_penalty": 0,
"agency_api": "",
"global_directives": ""
},
"models": [
{"name": "gpt3.5-turbo", "alias": "GPT3.5-turbo", "price": 0, "status": 0, "sort": 0}
]
}'
{
"code": 1,
"show": 1,
"msg": "创建成功",
"data": []
}