opt: optimize the styles of chat page; caculate all tokens of context as chat history's token

This commit is contained in:
RockYang
2023-09-11 13:34:20 +08:00
parent e2c18c4e1e
commit 3cc8c3284a
14 changed files with 95 additions and 60 deletions

View File

@@ -85,15 +85,27 @@ var InnerFunctions = []Function{
Type: "string",
Description: "绘画内容描述,提示词,如果该参数中有中文的话,则需要翻译成英文",
},
"ar": {
"--ar": {
Type: "string",
Description: "图片长宽比,默认值 16:9",
},
"niji": {
"--niji": {
Type: "string",
Description: "动漫模型版本,默认值空",
},
"v": {
"--s": {
Type: "string",
Description: "风格stylize",
},
"--seed": {
Type: "string",
Description: "随机种子",
},
"--no": {
Type: "string",
Description: "负面提示词,指定不要什么元素或者风格,如果该参数中有中文的话,则需要翻译成英文",
},
"--v": {
Type: "string",
Description: "模型版本,默认值: 5.2",
},