mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
style: ruff format transformation.py
This commit is contained in:
parent
8543247c91
commit
8b6321b66c
1 changed files with 1 additions and 4 deletions
|
|
@ -208,10 +208,7 @@ class GigaChatConfig(BaseConfig):
|
|||
]
|
||||
optional_params["function_call"] = {"name": schema_name} # mutable-ok: request payload
|
||||
optional_params["_structured_output"] = True
|
||||
elif not (
|
||||
isinstance(value, Mapping)
|
||||
and (value.get("type") in (None, "text", "json_schema"))
|
||||
):
|
||||
elif not (isinstance(value, Mapping) and (value.get("type") in (None, "text", "json_schema"))):
|
||||
# Only json_schema is actually mapped above; other response_format
|
||||
# values (e.g. json_object) would otherwise be silently ignored.
|
||||
if not drop_params:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue