mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #6524] [CLOSED] fix: Remove max_completion_tokens restriction in title generation handler #37531
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/6524
Author: @Ryan526
Created: 10/28/2024
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (1)
213dbaeFix: Remove max_completion_tokens restriction in title generation handler📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/main.py(+1 -1)📄 Description
Changelog Entry
Description
"max_completion_tokens": 50line inbackend/open_webui/main.pyat line 1574. The restriction was causing issues with o1 models, where reasoning tokens were consuming significantly more and preventing valid titles from being generated. By setting the value topass(removing the cap), the token limit is no longer enforced, preventing models from hitting the token ceiling before completion. This fix is needed to allow title generation when using o1 models.Changed
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.