Skip to content

Commit 31f1b92

Browse files
committed
Allow system messages on o3
1 parent 45320e5 commit 31f1b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gptcmd/llm/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _message_to_openai(self, msg: Message) -> Dict[str, Any]:
5656
res = {
5757
"role": (
5858
"developer"
59-
if self.model.startswith("o1")
59+
if (self.model.startswith("o1") or self.model.startswith("o3"))
6060
and msg.role == MessageRole.SYSTEM
6161
else msg.role
6262
)

0 commit comments

Comments
 (0)