快捷输入格式
请求URL:
/getPromptFormats
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| 无 | 无 | 无 | 无 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": "action",
"label": "Action",
"example": "action",
"prefix": "",
"suffix": ""
},
{
"id": "dialogue",
"label": "Dialogue",
"example": "\"dialogue\"",
"prefix": "\"",
"suffix": "\""
},
{
"id": "instructions",
"label": "Instructions",
"example": "(OOC:...)",
"prefix": "(OOC:",
"suffix": ")"
},
{
"id": "time-skip",
"label": "Time Skip",
"example": "(Time Skip)",
"fixed": "(Time Skip)"
},
{
"id": "specific-time-skip",
"label": "Specific Time Skip",
"example": "(Time Skip: The next morning)",
"prefix": "(Time Skip: ",
"suffix": ")"
},
{
"id": "continue-story",
"label": "Continue Story",
"example": "[OOC: Describe what happens next.]",
"fixed": "[OOC: Describe what happens next.]"
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | array | 快捷输入格式列表 |
| -id | string | 格式唯一标识 |
| -label | string | 格式显示名称 |
| -example | string | 格式示例 |
| -prefix | string | 输入内容的前缀,仅可编辑格式返回 |
| -suffix | string | 输入内容的后缀,仅可编辑格式返回 |
| -fixed | string | 固定输入内容,仅固定格式返回 |
备注
prefix和suffix用于包装用户输入的内容。fixed表示该格式的完整固定内容,不需要用户输入。- 每项只会返回
prefix/suffix或fixed中对应的字段。