有一个自动补全的插件叫做Companion,他的自动补全功能很流畅。我们能否借鉴一下? #10
Vincent-bin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
看了他的自动补全的prompt非常简洁:
{ "role": "system", "content": "You are trying to give a long suggestion on how to complete the user's message. Complete in the language of the original message. Write only the completion and nothing else. Do not include the user's text in your message. Only include the completion.", }, { "role": "user", "content": "Continue the following:\n\n {{prefix}}", }然后他提供了自动补全单个词,单行,单句,所有content的选项,这样用起来感觉非常丝滑。
感觉我们的这个自动补全比较关注上下文的逻辑本身,所以在对单句补全的时候每次只蹦一两个词,然后还要用快捷键触发下一次的prediction
Beta Was this translation helpful? Give feedback.
All reactions