- 后台接口
- 前台接口
- 【新】后台接口
- AI设置
- AI知识库
- 模型计费(旧)
- 模型管理
- 对话管理
- 创作管理
- 充值套餐
- 注册奖励
- 用户管理
- 用户分组
- 财务中心
- 其它接口
- 系统设置
- AI音乐
- AI搜索
- AIPPT
- 会员套餐
- 思维导图
- AI视频
- 分享设置
- 空间设置
- 任务分享记录
- AI绘画
- 广场分类
- 【新】前台接口
配置保存
开发中
POST
/adminapi/setting.ai.cost/save
请求参数
Header 参数
token
string
可选
示例值:
{{admin-token}}
Body 参数application/json
type
string
必需
configs
array [object {5}]
必需
channel
string
必需
name
string
模型名称
alias
string
模型别名
price
string
必需
status
integer
必需
示例
{
"type": "chat",
"configs": [
{
"channel": "openai",
"name": "gpt-3.5-turbo",
"alias": "GPT35",
"price": "0.001",
"status": 0
},
{
"channel": "zhipu",
"name": "chatglm_turbo",
"alias": "ChatGLM",
"price": "0.001",
"status": 0
}
]
}
示例代码
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.cost/save' \
--header 'token: {{admin-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "chat",
"configs": [
{
"channel": "openai",
"name": "gpt-3.5-turbo",
"alias": "GPT35",
"price": "0.001",
"status": 0
},
{
"channel": "zhipu",
"name": "chatglm_turbo",
"alias": "ChatGLM",
"price": "0.001",
"status": 0
}
]
}'
返回响应
修改于 2023-12-22 07:38:36