mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #13072] [MERGED] * fix: Refactor openai handler to support all o-series models universally #23088
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/13072
Author: @grandtele
Created: 4/20/2025
Status: ✅ Merged
Merged: 4/20/2025
Merged by: @tjbck
Base:
dev← Head:fix/openai_o_series_handler📝 Commits (1)
5a8e417* refactor openai handler to support all o-series models universally📊 Changes
1 file changed (+9 additions, -10 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+9 -10)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
o1,o1-mini,o1-preview,o3,o3-mini,o4-mini) to use a universal handler function.Added
openai_o_series_handlerto handle all o-series specific parameter and role transformations.Changed
max_tokenstomax_completion_tokensfor o-series models.o1-mini,o1-preview), and to "developer" for current/future o-series models.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, 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.