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

Open
OlegDStassenko opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant