diff --git a/litellm/litellm_core_utils/token_counter.py b/litellm/litellm_core_utils/token_counter.py index 31b4a81160f..8b8ea2a5ad3 100644 --- a/litellm/litellm_core_utils/token_counter.py +++ b/litellm/litellm_core_utils/token_counter.py @@ -1180,7 +1180,7 @@ def _format_type(props, indent): return "string" elif type == "array": if "items" not in props: - return f"{_format_type({}, indent)}[]" + return "any[]" return f"{_format_type(props['items'], indent)}[]" elif type == "object": return f"{{\n{_format_object_parameters(props, indent + 2)}\n}}"