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
The PR adds a new message type, but doesn't solve the ease of use problem in sending this new message type for openai when using chat client. needs some more thought.
Bug description
According to the OpenAI Guide and the Model Spec the former 'system' role' has now been replaced by the 'developer' role.
The o1 range of models reject the system role within a prompt
Environment
Java: 21
Spring AI: M7
Spring Boot: 3.4.4
Steps to reproduce
Create a Prompt containing a SystemMessage and a UserMessage using an o1 model e.g. o1-mini-2024-09-12
The call fails with:
Expected behavior
A successful call to Open AI
Minimal Complete Reproducible example
The text was updated successfully, but these errors were encountered: