-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: 存在吞掉prompt的行为 #270
Comments
我也遇到同样问题,经我的排查这或许与自动翻译功能有关,关闭自动翻译后就不吞了。 |
这很迷惑的是,关闭自动翻译和翻译插件,问题依旧没有解决。 |
代码就是这样写的,如果是novelai则将中文和英文圆括号都替换成英文花括号 |
这意味着我输入一个角色:nahida (genshin impact),然后根据代码转化为 nahida {genshin impact},这相当于直接给游戏名加权。 |
我做了以下实验: 发现问题: |
实验三: 截断点规律如下: |
感觉是可以修的…… 但话说回来,为啥要在逗号前面放空格?英语和中文都不是这么写的吧…… |
模拟有些用户可能在逗号前放空格的情况。 而我这一次又进行了一个实验: 这使用外层双引号包裹内容,不会吞掉prompt。 |
还有圆括号自动转换为花括号,这让人迷惑的功能,Novelai支持画师串,比如说画师ask (askzy),被转换为ask {askzy},这相当于给画师的后缀askzy加权。我希望将该功能移除出去。当然,用户可以自行添加转义符号”\“来解决,这是一个很麻烦的了,不可能在多个画师的情况下,给有圆括号的画师添加转义符号。 |
这个是 sd 第一版的语法,现在确实可以去掉了。新人不理解为啥这里有很多陈旧的设计其实挺正常的,太久没更新了( |
我认为可以添加一个新的选项,启用它会将当前用户输入转换为 sd syntax / nai syntax 等,并将它默认置为 false,应该能满足不同用户的需求。 |
Describe the bug
默认设置,使用令牌登录,输入长prompt将会被吞一部分。
与之前在此提交的#247相同。
https://github.com/koishijs/novelai-bot/issues/247
Steps to reproduce
在QQ输入一串长prompt,让插件绘画,发现返回的prompt中,部分被吞掉。
Expected behavior
希望能够修复这个bug,以正常使用
Screenshots
Relevant log output
Launcher
Koishi Desktop
Backend
NovelAI (Token)
Versions
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz
Binaries:
Node: 20.12.2
Yarn: 4.1.1
Koishi:
Core: 4.18.6
Console: 5.28.4
Koishi Desktop: 1.1.3
Additional context
No response
The text was updated successfully, but these errors were encountered: