mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #22187] Issue: Inconsistent Output Format Instructions in DEFAULT_FOLLOW_UP_GENERATION_PROMPT_TEMPLATE for LLM Follow-up Prompts #35182
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 @listenerri on GitHub (Mar 3, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22187
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.8.8
Ollama Version (if applicable)
No response
Operating System
Ubuntu24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
LLMs should always receive explicit output format instructions, consistently returning follow-up prompts as a JSON object with key
follow_ups.Actual Behavior
The prompt template includes conflicting instructions, sometimes resulting in a top-level JSON array. Backend expects an object. This causes parsing failures and missing follow-up prompts in the UI.
79f0437980/backend/open_webui/config.py (L1963-L1965)Steps to Reproduce
Logs & Screenshots
No backend error, template snippet included for reference.
Additional Information
See analysis and recommended fix above.