You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, very happy to see that the openai o1 model family is now available through AI assist. However when I try to use any of the o1 models, I see this error:
openai.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported value: 'messages[0].role' does not support 'system' with this model.", 'type': 'invalid_request_error', 'param': 'messages[0].role', 'code': 'unsupported_value'}}
I can confirm that I don't have any custom instructions input to my marimo settings, and I believe o1 models don't support system instruction, so assuming that marimo is trying to pass system instructions by default which triggers the issue.
hey @awooler, we can likely check if the model starts with o1 and remove ignore the system prompt. would you want to contribute this fix? i don't use the o1 models myself yet.
they say that the "developer" message should be forwards/backwards compatible with the "system" message, which others are reporting is not the case for them as well, so probably will stick to sonnet for now until fixed on their side
Describe the bug
Hello, very happy to see that the openai o1 model family is now available through AI assist. However when I try to use any of the o1 models, I see this error:
openai.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported value: 'messages[0].role' does not support 'system' with this model.", 'type': 'invalid_request_error', 'param': 'messages[0].role', 'code': 'unsupported_value'}}
I can confirm that I don't have any custom instructions input to my marimo settings, and I believe o1 models don't support system instruction, so assuming that marimo is trying to pass system instructions by default which triggers the issue.
Environment
Code to reproduce
No response
The text was updated successfully, but these errors were encountered: