mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-12 00:43:31 -05:00
[PR #13677] [MERGED] refactor: Improve Default Title Generation Prompt Template for robust JSON output #23262
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/13677
Author: @silentoplayz
Created: 5/8/2025
Status: ✅ Merged
Merged: 5/8/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
994f17bUpdate config.py📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+3 -0)📄 Description
devbranch.Changelog Entry
Description
DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATEto improve the reliability and robustness of JSON output for tool calling. This change aims to minimize parsing failures by providing clearer and stricter instructions to the language model regarding the expected output format.Added
Changed
DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATEguidelines to include three new clauses emphasizing strict JSON-only output:Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.