mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix(o_series_transformation.py): correctly map o4 to openai o_series model (#10079)
Fixes https://github.com/BerriAI/litellm/issues/10066
This commit is contained in:
parent
c73a6a8d1e
commit
8ddaf3dfbc
1 changed files with 4 additions and 1 deletions
|
|
@ -131,7 +131,10 @@ class OpenAIOSeriesConfig(OpenAIGPTConfig):
|
|||
|
||||
def is_model_o_series_model(self, model: str) -> bool:
|
||||
if model in litellm.open_ai_chat_completion_models and (
|
||||
"o1" in model or "o3" in model
|
||||
"o1" in model
|
||||
or "o3" in model
|
||||
or "o4"
|
||||
in model # [TODO] make this a more generic check (e.g. using `openai-o-series` as provider like gemini)
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue