mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #14105] issue: Chat title generation fails due to overwritten message variable (KeyError: 'model')
#17142
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 @ericklima-ca on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14105
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.6.10
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The chat should generate a meaningful title using the LLM model associated with the initial message, based on the content and role. For example, instead of showing "New Chat", it should display something contextually relevant like "Help with API Integration".
Actual Behavior
Chat title generation fails consistently. All chats are labeled "New Chat", regardless of their content. Console and backend logs show a KeyError: 'model', indicating that the model information is not found at runtime.
Steps to Reproduce
KeyError: 'model'.Logs & Screenshots
File "/app/backend/open_webui/utils/middleware.py", line 1005, in background_tasks_handler
"model": message["model"],
└ {'role': 'assistant', 'content': 'Olá! Como posso ajudar?'}
KeyError: 'model'
Additional Information
No response
@tjbck commented on GitHub (May 20, 2025):
Should be addressed with
e3e7eb96f6