From 72283e7f87a7116797ed9980cb9351c7a51938e3 Mon Sep 17 00:00:00 2001 From: WaleedH <42546485+WaleedHU@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:21:11 +0300 Subject: [PATCH] fix(vertex_ai): type the oneOf conversion helper parameters --- litellm/llms/vertex_ai/common_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.py index 059c2f9561e..c731ced1263 100644 --- a/litellm/llms/vertex_ai/common_utils.py +++ b/litellm/llms/vertex_ai/common_utils.py @@ -574,7 +574,7 @@ def _fix_enum_types(schema, depth=0): _fix_enum_types(item, depth=depth + 1) -def _convert_oneof_to_anyof(schema, depth=0): +def _convert_oneof_to_anyof(schema: dict[str, Any], depth: int = 0) -> None: if depth > DEFAULT_MAX_RECURSE_DEPTH: raise ValueError( f"Max depth of {DEFAULT_MAX_RECURSE_DEPTH} exceeded while processing schema. Please check the schema for excessive nesting."