Skip to content

Commit 14dc7b3

Browse files
committed
fix linting
1 parent a5a0773 commit 14dc7b3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

litellm/llms/OpenAI/o1_reasoning.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def get_supported_openai_params(self, model: str) -> list:
6565
param for param in all_openai_params if param not in non_supported_params
6666
]
6767

68-
def map_openai_params(self, non_default_params: dict, optional_params: dict):
68+
def map_openai_params(
69+
self, non_default_params: dict, optional_params: dict, model: str
70+
):
6971
for param, value in non_default_params.items():
7072
if param == "max_tokens":
7173
optional_params["max_completion_tokens"] = value

litellm/llms/OpenAI/openai.py

+1
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ def map_openai_params(
573573
return litellm.OpenAIO1Config().map_openai_params(
574574
non_default_params=non_default_params,
575575
optional_params=optional_params,
576+
model=model,
576577
)
577578
supported_openai_params = self.get_supported_openai_params(model)
578579
for param, value in non_default_params.items():

litellm/tests/test_openai_o1.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ async def test_o1_handle_system_role(respx_mock: MockRouter):
5050

5151
print(f"response: {response}")
5252
assert isinstance(response, ModelResponse)
53-
assert response.choices[0].message.content == "Mocked response"

0 commit comments

Comments
 (0)