mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 04:24:30 -05:00
enh: non-english (chinese) autocompletion handling #2885
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tryanks on GitHub (Dec 2, 2024).
Environment
Confirmation:
Background:
For some non-English languages, when typing, the input box displays the English representation of what is being typed, while the input method shows the corresponding candidate words.
Expected Behavior:
The auto prompt is generated only after typing the text.
Actual Behavior:
During the typing process, the auto prompt is oddly inserted into the input box (see the GIF below).
Description
Bug Summary:
The correct behavior for auto-completion should be: an auto prompt is generated only when there are no actively typed candidate words in the input box. Additionally, the candidate words that are currently being typed should not be included in the context for auto-completion.
Screen Recordings:

@aomiks commented on GitHub (Jan 3, 2025):
这个太烦了,每次都要backspace然后接着打字。
@since114514 commented on GitHub (Jan 7, 2025):
对,好难受
@aomiks commented on GitHub (Jan 7, 2025):
还有上传知识库的时候报错400: 'NoneType' object is not iterable,我试着把文档删除留下一点点,每次增加一点点的方法去试,发现1.4K就没问题,1.5K就开始报错,即便我用没问题的内容复制粘贴,或者我手动打些乱七八糟的字都不行,管理员设置上传文档大小和数量都留空没限制,请问是啥情况呢?