diff --git a/litellm/litellm_core_utils/json_validation_rule.py b/litellm/litellm_core_utils/json_validation_rule.py index 79f7df5eb41..861b0b9373a 100644 --- a/litellm/litellm_core_utils/json_validation_rule.py +++ b/litellm/litellm_core_utils/json_validation_rule.py @@ -58,8 +58,7 @@ def normalize_json_schema_types( # branch those entries fall through to the generic list recursion, # which leaves the bare strings uppercase. normalized_schema[key] = [ - type_mapping.get(entry, entry) if isinstance(entry, str) else entry - for entry in value + type_mapping.get(entry, entry) if isinstance(entry, str) else entry for entry in value ] elif key == "properties" and isinstance(value, dict): # Recursively normalize properties