Commit ec05f6f4 by jixudong

Upload New File

parent 45ffc140
# 剧情自动生成
# 剧情自动生成
> 基本信息
* 接口状态: 开发中
* 接口url:http://192.168.1.131:48089
* 请求方式:POST
* Content-Type: application/json;charset=UTF-8
##生成剧情
**METHOD**: post
**path**: /plotpoint/aigcPlot
##生成分支
**METHOD**: post
**path**: /plotpoint/aigcBranch
##生成回复
**METHOD**: post
**path**: /plotpoint/aigcReply
## 公共请求实例
```json
curl --location 'http://******/plotpoint/aigcPlot'
```
## 请求实例
public class AutoCreatPlotBO {
private String setting;故事背景
private String theme;主题
private String outline;大纲
private String startNumber;入口剧情点
private String number;当前剧情点
private Long projectId;作品id
private String user;玩家名字
private String roleList;角色列表
private String name;分支名称,生成回复剧情分支时需要传入。
}
请求
{
"setting": "你是一个作家,需要你根据现有的内容帮我写一段剧情。故事如下,一个养女儿的游戏,玩家选择成为女儿的父亲或者母亲,通过自己的选择来教育女儿正确的三观。给女儿一个美好的童年和青年时光",
"theme": "因为误会,女儿跟最好的朋友绝交。后来通过玩家的选择可能挽回,可能无法挽回 ",
"outline": " 女儿的朋友之前常常在家楼下或者来家里玩。但是这几周都没有来找女儿了。妻子/丈夫提起来这件事说道诶以前那个叫柯小敏小男孩不是经常找你玩吗?怎么最近不找你玩了? ",
"roleList": "父亲|母亲|女儿",
"startNumber": "5-1",
"number": "5-1",
"projectId": 308,
"user": "父亲",
"name": "分支1",
model:"xxx"
}
## 公共响应实例,生成剧情,分支,回复的一致
```json
{
"code": 1,
"msg": "成功",
"data": {
"id": 2549,
"number": "5-1",
"texts": [
{
"npcName": "女儿",
"content": "爸爸/妈妈,谢谢你们,我会试着和他沟通解决这个问题的。",
"emotion": "正常",
"intonation": 0.0,
"speech": 1.0,
"volume": 0.0,
"emotions": [
"正常"
]
}
],
"branchs": [
{
"name": "分支1",
"userSpeech": "任意回答",
"nextPlotNum": "5-1-1",
"intents": null
}
],
"projectId": 308,
"ownerId": 12,
"previous": [
{
"num": "2-6",
"reply": null
},
{
"num": "2-7",
"reply": null
}
],
"merge": false,
"complete": true,
"wordCount": 0,
"branchCount": 0,
"commentId": 2548,
"commentCount": 0,
"plotSort": null,
"noBranchCount": null
}
}
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment