mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
style(interactions): black-format gemini transformation.py
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
07d1988319
commit
866a3edd08
1 changed files with 7 additions and 3 deletions
|
|
@ -186,9 +186,13 @@ class GoogleAIStudioInteractionsConfig(BaseInteractionsAPIConfig):
|
|||
response_format = optional_params.get("response_format")
|
||||
response_mime_type = optional_params.get("response_mime_type")
|
||||
|
||||
if response_mime_type and not isinstance(response_format, list) and (
|
||||
not isinstance(response_format, dict)
|
||||
or "mime_type" not in response_format
|
||||
if (
|
||||
response_mime_type
|
||||
and not isinstance(response_format, list)
|
||||
and (
|
||||
not isinstance(response_format, dict)
|
||||
or "mime_type" not in response_format
|
||||
)
|
||||
):
|
||||
# Wrap the legacy schema into the new polymorphic format.
|
||||
new_rf: Dict[str, Any] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue