Skip to content

Commit 76dd9d8

Browse files
committed
GPT-5: Test for unsupported params
1 parent 2622a06 commit 76dd9d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_litellm/llms/openai/test_gpt5_transformation.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ def test_gpt5_temperature_error(config: OpenAIConfig):
4141
model="gpt-5",
4242
drop_params=False,
4343
)
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

Comments
 (0)