mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(openai): match reasoning series markers on normalized model name rather than raw path
This commit is contained in:
parent
cfe0100e1f
commit
b7b5354be1
2 changed files with 5 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ def unsupported_reasoning_effort_message(param: str, level: str, model: str) ->
|
|||
|
||||
def is_gpt_reasoning_series_name(model: str) -> bool:
|
||||
normalized: Final = model.split("/")[-1]
|
||||
return any(marker in model for marker in GPT_REASONING_SERIES_MARKERS) and "gpt-5-chat" not in normalized
|
||||
return any(marker in normalized for marker in GPT_REASONING_SERIES_MARKERS) and "gpt-5-chat" not in normalized
|
||||
|
||||
|
||||
class OpenAIGPT5Config(OpenAIGPTConfig):
|
||||
|
|
|
|||
|
|
@ -87,6 +87,10 @@ NON_GPT5_MODELS = [
|
|||
"o1",
|
||||
"o3",
|
||||
"o3-mini",
|
||||
"gpt-5-gateway/claude-3-5-sonnet",
|
||||
"gpt-5-team/llama-3.3-70b",
|
||||
"gpt-6-proxy/mistral-large",
|
||||
"my-gpt-5-org/gemini-2.0-flash",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue