Skip to content
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

[BUG] o1 and o1-mini models crash with "BadRequestError: Error code 400" #3944

Closed
OlegDStassenko opened this issue Jan 29, 2025 · 3 comments
Closed
Labels
bug Something isn't working no-recent-activity There has been no recent activity on this issue/pull request

Comments

@OlegDStassenko
Copy link

Describe the bug
Attempting to use the Azure OpenAI o1-mini model results in the exception:

OpenAI API hits 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'}} [Error reference: https://platform.openai.com/docs/guides/error-codes/api-errors]

How To Reproduce the bug
Configure a tool LLM to use an instance of o1-mini. Execute it.

Screenshots

Image
Image
Image

Running Information(please complete the following information):
"promptflow": "1.17.2",
"promptflow-azure": "1.17.2",
"promptflow-core": "1.17.2",
"promptflow-devkit": "1.17.2",
"promptflow-tracing": "1.17.2"

  • Operating System: 20.04.1-Ubuntu
  • Python (Linux) 3.10.15
@OlegDStassenko OlegDStassenko added the bug Something isn't working label Jan 29, 2025
@yuandikaalreiza
Copy link

same issue, it's also happening to me

@blumu
Copy link

blumu commented Feb 5, 2025

The o1 and o3 models don't support system message type, it's been replaced by developer, which is not currently supported by prompty or promptflow.

https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages

Copy link

github-actions bot commented Mar 7, 2025

Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue/pull request label Mar 7, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-recent-activity There has been no recent activity on this issue/pull request
Projects
None yet
Development

No branches or pull requests

3 participants