latest o1 models support developer messages rather than system messages #5353
Unanswered
lindaecho12
asked this question in
Q&A
Replies: 1 comment
-
@lindaecho12 according to Open AI specs system roles will be backward compatible with developer roles. For example, this will work: import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
async def main() -> None:
agent = AssistantAgent("assistant", OpenAIChatCompletionClient(model="o1"), system_message="You are a helpful AI assistant.")
print(await agent.run(task="Say 'Hello World!'"))
asyncio.run(main())
From the error you saw it looks like Azure API version is not up-to-date |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It appears that the O1 model from o1-2024-12-17 no longer supports the system message role, but it does support the developer role. I am getting below errors when using systemmessage with o1 model:
Will Autogen be updated to support the developer role for the O1 model?
https://community.openai.com/t/how-is-developer-message-better-than-system-prompt/1062784/5
https://platform.openai.com/docs/guides/text-generation#building-prompts
Beta Was this translation helpful? Give feedback.
All reactions