mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #22212] [MERGED] fix: correct conflicting output format in follow-up generation prompt template #42184
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22212
Author: @MJ16MJ
Created: 3/4/2026
Status: ✅ Merged
Merged: 3/6/2026
Merged by: @tjbck
Base:
dev← Head:fix/follow-up-prompt-template-format📝 Commits (1)
e53a478fix: correct conflicting output format instruction in follow-up generation prompt📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+1 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.{ "follow_ups": [...] }format and confirmed the updated guideline now matches.fix:Changelog Entry
Description
The
DEFAULT_FOLLOW_UP_GENERATION_PROMPT_TEMPLATEinbackend/open_webui/config.pycontained contradictory output format instructions:[...]){ "follow_ups": ["Question 1?", ...] }(object with key)The frontend parser in
src/lib/apis/index.tsexpects a JSON object — it searches for{/}delimiters and extractsparsed.follow_ups. When an LLM followed the "array" instruction and returned["Q1?", "Q2?"], the parser found no{, returned[], and the UI showed no follow-up suggestions.Fixed
follow_upskey containing an array of strings" — now consistent with the Output section and frontend parser expectations.Added
Changed
Deprecated
Removed
Security
Breaking Changes
Additional Information
backend/open_webui/config.py(line 1963)src/lib/apis/index.ts:716-730Screenshots or Videos
N/A — this is a backend prompt template text fix with no UI changes.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.