更新AI角色信息
最近更新日期:2026-01-24 19:20:25
接口说明
用于更新一个已创建的AI角色的信息。
请求信息
接口地址
POST /product/zeroai/character/update请求头
Content-Type: application/x-www-form-urlencoded
Authorization: 你的token请求参数 (Body, form-data)
| 参数名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| characterID | 是 | long | 要更新的角色ID |
| aiName | 是 | string | AI角色名称 |
| aiDescription | 是 | string | AI角色描述 |
| aiSystemPrompt | 是 | string | 系统提示词 |
| apiSelect | 是 | string | API提供商公钥 |
| apiKey | 是 | string | 所选API提供商的密钥 |
| model | 是 | int | 模型类型 (对应后端 AIModelType 枚举) |