[PR #6525] [CLOSED] fix: remove max_completion_tokens restriction when using o1 models #37532

Closed
opened 2026-04-25 10:57:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/6525
Author: @Ryan526
Created: 10/28/2024
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • 213dbae Fix: Remove max_completion_tokens restriction in title generation handler
  • ffcd51e fix titles when using o1

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 backend/open_webui/main.py (+5 -3)

📄 Description

Changelog Entry

Description

  • This commit removes the max_completion_token restriction only when using o1 models. The restriction was causing issues where reasoning tokens were consuming significantly more and preventing valid titles from being generated. This fix is needed to allow title generation when using o1 models.

Fixed


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/6525 **Author:** [@Ryan526](https://github.com/Ryan526) **Created:** 10/28/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`213dbae`](https://github.com/open-webui/open-webui/commit/213dbae060dace5adc6248b4fcf169b6d590d2de) Fix: Remove max_completion_tokens restriction in title generation handler - [`ffcd51e`](https://github.com/open-webui/open-webui/commit/ffcd51eac60cc6bb96781516b128b61b600a5d1b) fix titles when using o1 ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/main.py` (+5 -3) </details> ### 📄 Description # Changelog Entry ### Description - This commit removes the max_completion_token restriction only when using o1 models. The restriction was causing issues where reasoning tokens were consuming significantly more and preventing valid titles from being generated. This fix is needed to allow title generation when using o1 models. ### Fixed - #5729 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 10:57:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#37532