mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #13071] [CLOSED] fix: Unify Handler Logic for o-Series Models (o1, o3, o4) #23087
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/13071
Author: @grandtele
Created: 4/20/2025
Status: ❌ Closed
Base:
main← Head:fix/openai_o_series_handler📝 Commits (10+)
0a2747bMerge branch 'dev' of github.com:taylorwilsdon/open-webui into dev66bf6d8Merge branch 'dev' of github.com:taylorwilsdon/open-webui into devb446598Environment variable to redirect on logout708fcdcMerge branch 'dev' of github.com:taylorwilsdon/open-webui into deva8bbaa6Merge branch 'dev' into main839ba22feat: Backend for Self-Hosted/External Web Search/Loader Engines22f0365format008fec8fix: Update external search/loader method to POST85f8e91feat: Allow admin editing external search/loader settingsdcb3f18refac: styling📊 Changes
58 files changed (+2182 additions, -1496 deletions)
View changed files
📝
.github/pull_request_template.md(+1 -1)📝
LICENSE(+7 -1)📝
README.md(+1 -2)📝
backend/open_webui/__init__.py(+1 -1)📝
backend/open_webui/config.py(+42 -0)📝
backend/open_webui/env.py(+14 -0)📝
backend/open_webui/main.py(+25 -2)➕
backend/open_webui/retrieval/loaders/external.py(+53 -0)📝
backend/open_webui/retrieval/vector/dbs/qdrant.py(+34 -7)➕
backend/open_webui/retrieval/web/external.py(+47 -0)📝
backend/open_webui/retrieval/web/utils.py(+8 -0)📝
backend/open_webui/routers/auths.py(+7 -0)📝
backend/open_webui/routers/files.py(+4 -2)📝
backend/open_webui/routers/knowledge.py(+9 -8)📝
backend/open_webui/routers/ollama.py(+7 -1)📝
backend/open_webui/routers/openai.py(+15 -10)📝
backend/open_webui/routers/retrieval.py(+38 -2)📝
backend/open_webui/routers/users.py(+31 -0)📝
backend/open_webui/utils/middleware.py(+10 -6)📝
backend/open_webui/utils/oauth.py(+41 -1)...and 38 more files
📄 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.