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

fix: o1-preview does not support developer role #6370

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/phoenix-evals/src/phoenix/evals/models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ def _system_role(self) -> str:
return "system"
if "o1-mini" in self.model:
return "user" # o1-mini does not support either "system" or "developer" roles
if "o1-preview" in self.model:
return "user" # o1-preview does not support "system" or "developer" roles
if "o1" in self.model:
return "developer"
if "o3" in self.model:
Expand Down
Loading