-
Notifications
You must be signed in to change notification settings - Fork 60.2k
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
feat: wrap input with delimiters #1789
Conversation
只对特定的系统prompt起作用的话,没必要专门搞个配置项吧。 |
不错的想法,不过使用 options 是否会更好一些?直接列出常见的分隔符就行。
或者干脆做成用户模版预处理,面具内可以指定一个模版字符串来处理用户输入,同时还可以提供更多的预定义模版来注入额外的信息,比如:
|
对,模板更好。等我迟些有空改一下。 |
Yes, templates are better. I'll change it later when I have time. |
期待 |
expectations |
|
feat: close #1789 add user input template
I did not get how to use it do delimiter only certain part of the input message... When I put <{{input}}> on the configs it will delimiter every message I sent with <{{}}> ? |
Please give some examples of use |
Yes, the purpose of this feature is to wrap whole input message. What's your use case that just part of the input needs to be delimited? |
hi @marioseixas , let's discuss this issue in a different location. |
feat: close ChatGPTNextWeb#1789 add user input template
feat: close ChatGPTNextWeb#1789 add user input template
在对话设置中添加输入分隔符配置项,当配置了左右分隔符时,所有的用户输入都会用分隔符包裹。同时结合在系统prompt中指定输入分隔符,可以防止用户输入造成上下文逃逸。
支持了吴恩达公开课中的 tactic 1: use delimiters