[GH-ISSUE #8970] Prompt autocomplete doesn't handle prompts without a trailing space correctly #54003

Closed
opened 2026-05-05 15:40:19 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @find0x90 on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8970

Installation Method

Docker dev branch

Environment

  • Open WebUI Version: v0.5.7

  • Ollama (if applicable): 0.5.7

  • Operating System: Windows 11

  • Browser (if applicable): Firefox 134.0.2

Confirmation:

  • [] I have read and followed all the instructions provided in the README.md.
  • [] I am on the latest version of both Open WebUI and Ollama.
  • [] I have included the browser console logs.
  • [] I have included the Docker container logs.
  • [] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

The autocomplete suggestion should have a leading space when the prompt does not have a trailing space.

Actual Behavior:

The autocomplete suggestion is appended to the prompt without a space in between the two.

Description

Bug Summary:
Autocomplete suggestions do not handle the case where the partially written prompt does not have a trailing space. See the attached screenshot.

Reproduction Details

Steps to Reproduce:
Make sure autocomplete is enabled and write a partial query without a trailing space.

Logs and Screenshots

Image

Originally created by @find0x90 on GitHub (Jan 27, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/8970 ## Installation Method Docker dev branch ## Environment - **Open WebUI Version:** v0.5.7 - **Ollama (if applicable):** 0.5.7 - **Operating System:** Windows 11 - **Browser (if applicable):** Firefox 134.0.2 **Confirmation:** - [✅] I have read and followed all the instructions provided in the README.md. - [✅] I am on the latest version of both Open WebUI and Ollama. - [❌] I have included the browser console logs. - [❌] I have included the Docker container logs. - [✅] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: The autocomplete suggestion should have a leading space when the prompt does not have a trailing space. ## Actual Behavior: The autocomplete suggestion is appended to the prompt without a space in between the two. ## Description **Bug Summary:** Autocomplete suggestions do not handle the case where the partially written prompt does not have a trailing space. See the attached screenshot. ## Reproduction Details **Steps to Reproduce:** Make sure autocomplete is enabled and write a partial query without a trailing space. ## Logs and Screenshots ![Image](https://github.com/user-attachments/assets/d0c0ea8f-9b2f-470b-9c55-fdf0f73122de)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#54003