You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue where the o1-mini model throws an error stating that it "does not support system role," while the same code works perfectly for the o1 model without requiring the Developer role. As per the official OpenAI documentation, reasoning models should require the Developer role for system messages. However:
Expected Behavior:
Both o1 and o1-mini should either consistently accept system messages without requiring a Developer role or reject them in accordance with the documented behavior.
Actual Behavior:
The o1-mini model fails with an error regarding the unsupported system role.
The o1 model works successfully without needing a Developer role, contrary to expectations.
Steps to reproduce
Steps to Reproduce:
Use the o1-mini model with system messages in the payload.
Observe the error: "Model does not support system role."
Switch to the o1 model and note that it works without errors, despite no Developer role assignment.
Code snippets
varmessages=newList<ChatMessage>{newSystemChatMessage("Some system message here"),newUserChatMessage("asked question with dependency on system message")};try{vardefaultOpenAIKey=Environment.GetEnvironmentVariable("openAIKey",EnvironmentVariableTarget.Process);varopenAiClient=newChatClient("o1-mini",defaultOpenAIKey);varresult=awaitopenAiClient.CompleteChatAsync(messages,options,cancellationToken);returnresult.Content[0].Text;}catch(Exceptionex){returnnewBadRequestObjectResult(ex.Message);}
OS
windows
.NET version
8
Library version
2.1.0
The text was updated successfully, but these errors were encountered:
I encountered an issue where the o1-mini model throws an error stating that it "does not support system role," while the same code works perfectly for the o1 model without requiring the Developer role. As per the official OpenAI documentation, reasoning models should require the Developer role for system messages. However:
Expected Behavior:
Both o1 and o1-mini should either consistently accept system messages without requiring a Developer role or reject them in accordance with the documented behavior.
Actual Behavior:
The o1-mini model fails with an error regarding the unsupported system role.
The o1 model works successfully without needing a Developer role, contrary to expectations.
Steps to reproduce
Steps to Reproduce:
Use the o1-mini model with system messages in the payload.
Observe the error: "Model does not support system role."
Switch to the o1 model and note that it works without errors, despite no Developer role assignment.
Code snippets
OS
windows
.NET version
8
Library version
2.1.0
The text was updated successfully, but these errors were encountered: