style(interactions): black-format gemini transformation.py

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Sameer Kankute 2026-05-20 21:44:38 +05:30
parent 07d1988319
commit 866a3edd08
No known key found for this signature in database

View file

@ -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] = {