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]: o3-mini - Azure OpenAI #8158

Closed
yigitkonur opened this issue Jan 31, 2025 · 0 comments · Fixed by #8162 or #8181
Closed

[Bug]: o3-mini - Azure OpenAI #8158

yigitkonur opened this issue Jan 31, 2025 · 0 comments · Fixed by #8162 or #8181
Labels
bug Something isn't working

Comments

@yigitkonur
Copy link
Contributor

What happened?

Surprisingly, Azure OpenAI this time added support for the o3-mini model on the same day!

But when a request is sent with stream set to true, the ability to fake the stream that worked with o1 models (behaving as if stream were false but returning full data by SSE in single message) doesn't work here. This won't work even with enable_preview_features set to true, and was likely hardcoded only for o1 models.

To reproduce this, simply sending a request with stream set to true will be sufficient.

Request:

{
  "model": "o3-mini",
  "messages": [
    {
      "role": "user",
      "content": "Who are you?"
    }
  ],
  "frequency_penalty": 0,
  "presence_penalty": 0,
  "temperature": 1,
  "top_p": 1,
  "stream": true
}

Response:

{
  "error": {
    "message": "litellm.BadRequestError: AzureException BadRequestError - Error code: 400 - {'error': {'message': \"Unsupported value: 'stream' does not support true with this model. Supported values are: false.\", 'type': 'invalid_request_error', 'param': 'stream', 'code': 'unsupported_value', 'callstack': '  File \...]}] LiteLLM Retried: 4 times, LiteLLM Max Retries: 5",
    "type": null,
    "param": null,
    "code": "400"
  }
}

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

1.59.9

Twitter / LinkedIn details

x.com/yigitkonur

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
1 participant