mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
lint: combine if branches to satisfy ruff SIM114
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
635c3b34ca
commit
daf12e19a7
1 changed files with 3 additions and 3 deletions
|
|
@ -480,9 +480,9 @@ class FireworksAIConfig(FireworksAIMixin, OpenAIGPTConfig):
|
|||
if not isinstance(schema, dict):
|
||||
return
|
||||
for key in list(schema):
|
||||
if key in FireworksAIConfig._FIREWORKS_TOOL_SCHEMA_STRIP_KEYS:
|
||||
schema.pop(key, None)
|
||||
elif key == "default" and schema[key] is None:
|
||||
if key in FireworksAIConfig._FIREWORKS_TOOL_SCHEMA_STRIP_KEYS or (
|
||||
key == "default" and schema[key] is None
|
||||
):
|
||||
schema.pop(key, None)
|
||||
elif key == "properties" and isinstance(schema[key], dict):
|
||||
for prop in schema[key].values():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue