fix: add exceptions to accept_developer_role (#2848)

This commit is contained in:
Kevin Lin
2025-06-16 15:14:40 -07:00
committed by GitHub
parent 440305ad74
commit 6ea0a7e74e

View File

@@ -53,7 +53,7 @@ def accepts_developer_role(model: str) -> bool:
See: https://community.openai.com/t/developer-role-not-accepted-for-o1-o1-mini-o3-mini/1110750/7
"""
if is_openai_reasoning_model(model):
if is_openai_reasoning_model(model) and not "o1-mini" in model or "o1-preview" in model:
return True
else:
return False