From 006ffea98f5c6223c5e0c2c5eca2312df1714ecf Mon Sep 17 00:00:00 2001 From: Eitan1112 <52412573+Eitan1112@users.noreply.github.com> Date: Thu, 4 Sep 2025 17:53:40 +0300 Subject: [PATCH 1/2] Add additionalProperties to vertex ai Schema definition Add additionalProperties field to vertex ai Schema TypedDict --- litellm/types/llms/vertex_ai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/types/llms/vertex_ai.py b/litellm/types/llms/vertex_ai.py index 1b74ee25803..c3027504dff 100644 --- a/litellm/types/llms/vertex_ai.py +++ b/litellm/types/llms/vertex_ai.py @@ -113,6 +113,7 @@ class Schema(TypedDict, total=False): pattern: str example: Any anyOf: List["Schema"] + additionalProperties: bool class FunctionDeclaration(TypedDict, total=False): From da136fa07b85cd27c87d49147e9727c28b7c7a9d Mon Sep 17 00:00:00 2001 From: Eitan1112 <52412573+Eitan1112@users.noreply.github.com> Date: Thu, 4 Sep 2025 18:05:53 +0300 Subject: [PATCH 2/2] Change additionalProperties type to Any This is aligned with "default" which is also `Any`, and both in vertex ai docs: https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.cachedContents#Schema are both with 'value' type --- litellm/types/llms/vertex_ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/llms/vertex_ai.py b/litellm/types/llms/vertex_ai.py index c3027504dff..625a76b6789 100644 --- a/litellm/types/llms/vertex_ai.py +++ b/litellm/types/llms/vertex_ai.py @@ -113,7 +113,7 @@ class Schema(TypedDict, total=False): pattern: str example: Any anyOf: List["Schema"] - additionalProperties: bool + additionalProperties: Any class FunctionDeclaration(TypedDict, total=False):