mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 09:31:58 -05:00
[PR #10680] [CLOSED] fix: restore compatibility for older o1 models (o1-mini, o1-preview) #9373
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/10680
Author: @grandtele
Created: 2/24/2025
Status: ❌ Closed
Base:
dev← Head:fix/openai-o1-o3-legacy-roles📝 Commits (1)
8c02048* fix: restore compatibility for older o1 models (o1-mini, o1-preview)📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+8 -2)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
In PR #10617, we replaced the
systemrole with thedeveloperrole for newer o1/o3 models. However, older models likeo1-miniando1-previewdo not support thedeveloperrole. This pull request restores compatibility for those legacy models by remappingsystem→userspecifically foro1-miniando1-preview.Added
Changed
system→userinstead ofdeveloper.Deprecated
Removed
Fixed
o1-mini,o1-preview) that do not support thedeveloperrole.Security
Breaking Changes
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.