内置角色
请求URL:
/getSpecialRole
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| refresh | 否 | bool | 是否刷新 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"assistantRole": {
"id": 2922,
"name": "Assistant",
"description": "You are an outstanding all-round AI assistant",
"personality": "",
"firstMes": "",
"avatar": "",
"scenario": "",
"backgroundThumb": "",
"background": "",
"creatorNotes": "",
"descriptionNew": "",
"descriptionThumb": "",
"systemPrompt": "",
"mesExample": "",
"tags": null,
"characterBook": null,
"state": 0,
"isRecommend": 0,
"IsAudit": 0,
"chatCount": 0,
"chatCountVirtual": 0,
"favoriteCount": 0,
"isFavorite": false
},
"signRole": {
"id": 2921,
"name": "Astrology master",
"description": "1.If a user asks you if you're a GPT, you abso...",
"personality": "",
"firstMes": "",
"avatar": "",
"scenario": "",
"backgroundThumb": "",
"background": "",
"creatorNotes": "",
"descriptionNew": "",
"descriptionThumb": "",
"systemPrompt": "",
"mesExample": "",
"tags": null,
"characterBook": null,
"state": 0,
"isRecommend": 0,
"IsAudit": 0,
"chatCount": 0,
"chatCountVirtual": 0,
"favoriteCount": 0,
"isFavorite": false
},
"topRole": [
{
"id": 2923,
"name": "Aurora",
"description": "",
"personality": "",
"firstMes": "*Sobbing and wiping away tear* I ...*",
"avatar": "https://muyuhan.s3.us-east-1..1.png",
"scenario": "",
"backgroundThumb": "https://muyuhan....png",
"background": "https://muyuhan.s3...png",
"creatorNotes": "She is a noble heiress from a prominent...",
"descriptionNew": "",
"descriptionThumb": "",
"systemPrompt": "",
"mesExample": "",
"tags": [
"girl"
],
"characterBook": null,
"state": 0,
"isRecommend": 0,
"IsAudit": 0,
"chatCount": 0,
"chatCountVirtual": 0,
"favoriteCount": 0,
"isFavorite": false
},
{
"id": 2924,
"name": "Eira",
"description": "",
"personality": "",
"firstMes": "*With a shy expression on his ..",
"avatar": "https://muyuhan.s3.us-east-1.amazonaws.com/aiChat/roles/%E5%9B%BE%E7%89%872-1.png",
"scenario": "",
"backgroundThumb": "https://muyuhan.s3.us-east-1....png",
"background": "https://muyuhan.s3.us-east-1.amazonaws.com...png",
"creatorNotes": "She is the most beautiful girl in your ...",
"descriptionNew": "",
"descriptionThumb": "",
"systemPrompt": "",
"mesExample": "",
"tags": [
"girl"
],
"characterBook": null,
"state": 0,
"isRecommend": 0,
"IsAudit": 0,
"chatCount": 0,
"chatCountVirtual": 0,
"favoriteCount": 0,
"isFavorite": false
}
]
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据体 |
| -assistantRole | struct | AI助手角色 |
| -signRole | struct | 星座大师角色 |
| -topRole | struct | 顶部角色 |
| --id | int | 角色ID |
| --name | string | 角色名称 |
| --description | string | 角色描述 |
| --personality | string | 角色个性 |
| --firstMes | string | 角色第一句话 |
| --avatar | string | 角色头像 |
| --backgroundThumb | string | 角色缩率背景图 |
| --background | string | 角色背景图 |
| --scenario | string | 角色故事背景 |
| --tags | Array | 角色标签 |
| --chatCount | int | 聊天次数 |
| --isFavorite | bool | 是否已点赞 |
备注
错误码 510 系统错误 610 邮箱未注册 620 账号或密码错误