mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix unrecognised parameter reasoning_effort (#11838)
* fix unrecognised parameter reasoning_effort * review changes
This commit is contained in:
parent
b3d8a6be9e
commit
30318c40c9
1 changed files with 4 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ from typing import List, Optional
|
|||
import litellm
|
||||
from litellm import verbose_logger
|
||||
from litellm.types.llms.openai import AllMessageValues
|
||||
from litellm.utils import get_model_info
|
||||
from litellm.utils import get_model_info, supports_reasoning
|
||||
|
||||
from ...openai.chat.o_series_transformation import OpenAIOSeriesConfig
|
||||
|
||||
|
|
@ -38,7 +38,9 @@ class AzureOpenAIO1Config(OpenAIOSeriesConfig):
|
|||
"top_logprobs",
|
||||
]
|
||||
|
||||
o_series_only_param = ["reasoning_effort"]
|
||||
o_series_only_param = []
|
||||
if supports_reasoning(model):
|
||||
o_series_only_param.append("reasoning_effort")
|
||||
all_openai_params.extend(o_series_only_param)
|
||||
return [
|
||||
param for param in all_openai_params if param not in non_supported_params
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue