Skip to content

Commit

Permalink
fix: o1-preview does not support developer role (#6370)
Browse files Browse the repository at this point in the history
  • Loading branch information
anticorrelator authored Feb 13, 2025
1 parent 0743206 commit 9ea8651
Showing 1 changed file with 2 additions and 0 deletions.
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 @@ -432,6 +432,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

0 comments on commit 9ea8651

Please sign in to comment.