- 后台接口
- 前台接口
- 【新】后台接口
- AI设置
- AI知识库
- 模型计费(旧)
- 模型管理
- 对话管理
- 创作管理
- 充值套餐
- 注册奖励
- 用户管理
- 用户分组
- 财务中心
- 其它接口
- 系统设置
- AI音乐
- AI搜索
- AIPPT
- 会员套餐
- 思维导图
- AI视频
- 分享设置
- 空间设置
- 任务分享记录
- AI绘画
- 广场分类
- 【新】前台接口
AI模型配置保存
开发中
POST
/adminapi/setting.ai.chat/save
请求参数
Header 参数
token
string
可选
示例值:
{{admin-token}}
Body 参数application/json
chat_logo
string
必需
chat_default
string
必需
chat_example
string
必需
model_example
string
必需
global_directives
string
必需
price_unit
string
必需
is_reopen
integer
必需
default_reply_open
integer
必需
default_reply
string
必需
is_show_model
integer
必需
chat_title
string
必需
global_directives_model
object
必需
gpt3.5
string
必需
gpt4.0
string
必需
api2d3.5
string
必需
api2d4.0
string
必需
zhipu
string
必需
xunfei
string
必需
baidu
string
必需
qwen
string
必需
doubao
string
必需
ollama
string
必需
azure
string
必需
minimax
string
必需
watermark
string
必需
min_consume_status
integer
必需
min_consume_price
string
最新消费金额
min_consume_tips
string
最新消费提示
related_issues_num
number
对话相似问题数量
示例
{
"chat_logo": "http://www.php-cw.localhost/resource/image/adminap...",
"chat_default": "http://www.php-cw.localhost/resource/image/adminap...",
"chat_example": "http://www.php-cw.localhost/resource/image/adminap...",
"model_example": "http://www.php-cw.localhost/resource/image/adminap...",
"global_directives": "",
"price_unit": "",
"is_reopen": 0,
"default_reply_open": 0,
"default_reply": "",
"is_show_model": 0,
"chat_title": "",
"global_directives_model": {
"gpt3.5": "gpt3.5",
"gpt4.0": "gpt4.0",
"api2d3.5": "api2d3.5",
"api2d4.0": "api2d4.0",
"zhipu": "智普AI",
"xunfei": "讯飞星火",
"baidu": "文心一言",
"qwen": "通义千问",
"doubao": "字节豆包",
"ollama": "Ollama",
"azure": "Azure",
"minimax": "MiniMax"
},
"watermark": "内容由AI生成仅供参考",
"min_consume_status": 0,
"min_consume_price": "",
"min_consume_tips": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/setting.ai.chat/save' \
--header 'token: {{admin-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"chat_logo": "http://www.php-cw.localhost/resource/image/adminap...",
"chat_default": "http://www.php-cw.localhost/resource/image/adminap...",
"chat_example": "http://www.php-cw.localhost/resource/image/adminap...",
"model_example": "http://www.php-cw.localhost/resource/image/adminap...",
"global_directives": "",
"price_unit": "",
"is_reopen": 0,
"default_reply_open": 0,
"default_reply": "",
"is_show_model": 0,
"chat_title": "",
"global_directives_model": {
"gpt3.5": "gpt3.5",
"gpt4.0": "gpt4.0",
"api2d3.5": "api2d3.5",
"api2d4.0": "api2d4.0",
"zhipu": "智普AI",
"xunfei": "讯飞星火",
"baidu": "文心一言",
"qwen": "通义千问",
"doubao": "字节豆包",
"ollama": "Ollama",
"azure": "Azure",
"minimax": "MiniMax"
},
"watermark": "内容由AI生成仅供参考",
"min_consume_status": 0,
"min_consume_price": "",
"min_consume_tips": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{
"code": 1,
"show": 1,
"msg": "保存成功",
"data": []
}
修改于 2024-08-13 08:09:06