Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up system message handling in openai #43

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

rishsriv
Copy link
Member

@rishsriv rishsriv commented Feb 7, 2025

In OpenAI's new reasoning models, system messages have been disabled, and replaced with another kind of message with the role "developer".

Our previous approach for handling system messages was pretty bad, and it assumed that the system message could only be the first message. This one is a lot more robust.

@rishsriv rishsriv merged commit 41755be into main Feb 7, 2025
1 check passed
@rishsriv rishsriv deleted the rishabh/clean-up-system-message-handling branch February 7, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant