[PR #10617] [MERGED] fix: replace "system" with "developer" for o1 and o3 models #22569

Closed
opened 2026-04-20 04:14:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/10617
Author: @grandtele
Created: 2/23/2025
Status: Merged
Merged: 2/24/2025
Merged by: @tjbck

Base: devHead: fix/openai-o1-o3-role


📝 Commits (1)

  • 82657ac * fix: adjust role mapping for o1 and o3 models in openai_o1_o3_handler

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 backend/open_webui/routers/openai.py (+2 -2)

📄 Description

Description

This implementation corrects the temporary fix in the codebase. Initially, the "o" series models only supported the "user" role. However, they recently introduced support for the "developer" role, which is equivalent to the "system" role.

Fixed

  • Fixed role mapping: changed "system" to "developer" for o1 and o3 models.

Changelog Entry

  • Fixed: Updated OpenAI o1 and o3 role handling by replacing "system" with "developer".

Additional Information

  • No new dependencies were introduced.
  • No breaking changes expected.

🔄 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/10617 **Author:** [@grandtele](https://github.com/grandtele) **Created:** 2/23/2025 **Status:** ✅ Merged **Merged:** 2/24/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/openai-o1-o3-role` --- ### 📝 Commits (1) - [`82657ac`](https://github.com/open-webui/open-webui/commit/82657acdceaf0a9136b4e9a363b250cd24f5b2d7) * fix: adjust role mapping for o1 and o3 models in openai_o1_o3_handler ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/openai.py` (+2 -2) </details> ### 📄 Description ### Description This implementation corrects the temporary fix in the codebase. Initially, the "o" series models only supported the "user" role. However, they recently introduced support for the "developer" role, which is equivalent to the "system" role. ### Fixed - Fixed role mapping: changed `"system"` to `"developer"` for o1 and o3 models. ### Changelog Entry - Fixed: Updated OpenAI o1 and o3 role handling by replacing "system" with "developer". ### Additional Information - No new dependencies were introduced. - No breaking changes expected. --- <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-20 04:14:34 -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#22569