mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
Bug in "Continue Response" #1830
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 @Tostino on GitHub (Aug 20, 2024).
Bug Report
Installation Method
Docker
Environment
Open WebUI Version: v0.3.8
vllm inference
Operating System: Pop_OS
Browser (if applicable): Firefox
Confirmation:
Expected Behavior:
When using the "continue response" button, the API call should pass
add_generation_prompt=falseto the OpenAI chat endpoint so it can be passed to the template. This should prevent the end of turn ID from being added, allowing the generation to continue where it left off.Actual Behavior:
The API call for the "continue response" button does not pass
add_generation_prompt=false. As a result, the end of turn ID is added, preventing the generation from continuing seamlessly from where it left off.Description
Bug Summary:
The "continue response" functionality is not working correctly due to the absence of the
add_generation_prompt=falseparameter in the API call, which is supported by the custom chat template but not being utilized.Reproduction Details
Steps to Reproduce:
add_generation_promptparameter is set totrue.add_generation_prompt=false.Logs and Screenshots
Browser Console Logs:
[Not provided]
Docker Container Logs:
[Not provided]
Screenshots/Screen Recordings (if applicable):
[Not provided]
Additional Information
The custom chat template supports the
add_generation_promptfeature. The bug prevents this feature from being utilized correctly when continuing a response.When looking at the vLLM logs, you will be able to see the templated query sent to the LLM, and see if the chat template was properly applied or not.