-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add OpenAI o3 & o4-mini #10065
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
Add OpenAI o3 & o4-mini #10065
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4060a74
to
4db11f3
Compare
"max_tokens": 100000, | ||
"max_input_tokens": 200000, | ||
"max_output_tokens": 100000, | ||
"input_cost_per_token": 0.00001, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @PeterDaveHello can you please use scientific notation (e.g. 1e-6) and mention the supported_endpoints, modalities, output_modalities for these models?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly, I’m happy to help with that. Could you also please tell me when I should use scientific notation here?
4db11f3
to
d2c611b
Compare
Hey guys, can you please include azure/ models as well? Always assume there's an Azure-hosted model available shortly after OpenAI 😄 |
Hey @elabbarw good point - do you see the pricing for the azure models though? |
Their list price should be the same. |
Prices have historically always been the same. So far i've got the 4.1 models live in Sweden Central and US regions. I'm expecting to see the new O models soon. |
Also ensuring that they support the 'reasoning_effort'. I added the models manually and get the error below when trying to use reasoning_effort. I'm creating a model called o4-mini-high which is technically just o4-mini with the reasoning set to high. 400: litellm.UnsupportedParamsError: openai does not support parameters: ['reasoning_effort'], for model=o4-mini. To drop these, set
|
Hi,
|
Hey @miguelwon that seems like an OpenAI error. |
Thanks @krrishdholakia. It is working now. |
please can you fix it also for azure? because there is same logic in file o_series_transformation.py like for openai. |
Ack @valda-z Fix pushed on main |
Thanks! Any plans to public new version for pip? |
Yes - hopefully today |
Wow :) !! |
Title
Add OpenAI o3 & 4o-mini
Reference:
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/
directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit
)[https://docs.litellm.ai/docs/extras/contributing_code]Type
🆕 New Feature
Changes
Added: