We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2622a06 commit 76dd9d8Copy full SHA for 76dd9d8
tests/test_litellm/llms/openai/test_gpt5_transformation.py
@@ -41,3 +41,14 @@ def test_gpt5_temperature_error(config: OpenAIConfig):
41
model="gpt-5",
42
drop_params=False,
43
)
44
+
45
46
+def test_gpt5_unsupported_params_drop(config: OpenAIConfig):
47
+ assert "top_p" not in config.get_supported_openai_params(model="gpt-5")
48
+ params = config.map_openai_params(
49
+ non_default_params={"top_p": 0.5},
50
+ optional_params={},
51
+ model="gpt-5",
52
+ drop_params=True,
53
+ )
54
+ assert "top_p" not in params
0 commit comments