mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #12812] issue: The chat title will not be set as the first prompt when the title auto generation is turned off #16720
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 @ZUIcat on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12812
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.4
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
Edge v135.0.3179.73
Confirmation
README.md.Expected Behavior
When the title auto generation is turned off, the chat title should be the first prompt.
Actual Behavior
When the title auto generation is turned off, the chat title not changed.
Steps to Reproduce
I have briefly read the code, and it is probably designed in the same way. But now, when the title auto generation is turned off, the chat title has not changed.
I hit a breakpoint and found that at line 1634 of
Chat.svelte, thesettings?.titleis equal tonull, so thebackground_tasks.title_generationwill always be true. So in line 959 ofmiddleware.py, thetasks[TASKS.TITLE_GENERATION]will always be true. But when title auto generation is turned off, theif res and isinstance(res, dict)will not pass, theJSONResponseis not adict, so there is no place to update the chat title.Logs & Screenshots
Additional Information
No response