mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #21136] feat: Accept 'developer' role in inbound Chat Completions API #73997
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?
Originally created by @jbraseth on GitHub (Feb 3, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21136
Description
OpenWebUI's
/api/chat/completionsendpoint rejects messages withrole: "developer", returning a Pydantic validation error. Thedeveloperrole was introduced by OpenAI in early 2025 as a replacement forsystemin newer API versions (starting with the o1 model family). It is functionally identical tosystem— it carries system/instruction context.This affects any client targeting the current OpenAI Chat Completions spec, including:
Steps to Reproduce
Send a Chat Completions request to OpenWebUI's API with a
developerrole message:Expected Behavior
The request succeeds, with
developertreated equivalently tosystem.Actual Behavior
Pydantic validation error:
Context
OpenWebUI already handles the
developerrole in the outbound direction — PR #10617 mapssystem→developerwhen sending requests to o1/o3 models. This issue is about the inbound direction: acceptingdeveloperfrom API clients.The fix would be adding
developeras a valid role in the inbound message schema and mapping it tosystembefore processing.Version
OpenWebUI v0.7.2
@pr-validator-bot commented on GitHub (Feb 3, 2026):
⚠️ Missing Issue Title Prefix
@jbraseth, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@tjbck commented on GitHub (Feb 6, 2026):
This is unlikely to be caused by our backend, I'd encourage you to try again with another inference provider to make sure the error is occurring from open webui.