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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head: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
"system"to"developer"for o1 and o3 models.Changelog Entry
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.