-
Notifications
You must be signed in to change notification settings - Fork 45
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
'messages[0].role' does not support 'system' with this model.
for OpenAI o1-mini
/ o1-preview
#762
Comments
@yurhasko I can't think of an ideal solution for this in code as this is a model issue. You could try configuring the chat to only supported parameters. The following worked for me:
![]() ![]() @humphd @tarasglek Please correct me if there's a better way. |
Hmm, ok, thanks, it works now. I believe it's worth to fix it in one of the following ways:
|
Doing provider-level, and also model-level, param overrides is a good idea we could explore. However, I'm not sure about the chat completions change, since system messages are part of the spec. What if you use o1 via OpenRouter.ai instead of OpenAI? Do they solve this for you? Also, out of interest, what are your costs like with o1 for this? Finally, I notice we aren't using the right icon for o1. |
I think we need a way to toggle the type of message while editing it. I've seen this with llama image models too. I'd prefer to not do that automagically..except maybe as a suggestion while handling error "Would you like to change your system message to user message?" Regading temp, that we can probably fix automatically. There are a models that are picky re temp settings...Can easily pattern match on temperature errors and set it to a higher value. I think per-provider/per-model temp settings make sense in longer term. In general would be cool if we had per-provider memory for last-model used, can store last-temp used there too. |
All
o1-*
models don't support 'system' role: https://stackoverflow.com/questions/78981559/why-the-new-openai-model-o1-preview-doesnt-support-system-roleSo any attempt to work with
o1-mini
/o1-preview
fails with the following error:The text was updated successfully, but these errors were encountered: