mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix: Image Generation and Edits - ensure response_format is not present in extra_body
This commit is contained in:
parent
a32a6c43c7
commit
89874a66c3
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ def test_get_optional_params_image_gen():
|
|||
)
|
||||
assert optional_params is not None
|
||||
assert "response_format" not in optional_params
|
||||
if 'extra_body' in optional_params:
|
||||
assert "response_format" not in optional_params['extra_body']
|
||||
assert optional_params["n"] == 3
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue