mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
bug: Title Generation not working when using OpenAI APIs #3093
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 @Simi5599 on GitHub (Dec 25, 2024).
Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
When asking an LMM something, OpenWeb UI should autogenerate the title for the chat
Actual Behavior:
The title is not autogenerated and the chat stays on "New Chat"
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
No errors
Docker Container Logs:
Spotted the following error:
@tjbck commented on GitHub (Dec 25, 2024):
Fixed on dev! Testing wanted here!
@Simi5599 commented on GitHub (Dec 25, 2024):
Wonderful, i was just about making a PR with the same fix you did!
I will copy your code and test it on my environment in 20 min!
@Simi5599 commented on GitHub (Dec 26, 2024):
Can confirm this is working on my side! (OpenAI APIs)
@msurma commented on GitHub (Dec 26, 2024):
Hit the same issue. Found the cause in chat request logic:
23bf71022e/src/lib/components/chat/Chat.svelte (L1508)This condition controls title/tags generation tasks, but fails when you have a user-level system prompt configured in settings - new chats start with 2 messages [system, user] instead of 1, so generation never triggers.