From 694c5da27dc8d9dcd717cd1017abf012d25153d8 Mon Sep 17 00:00:00 2001 From: Sasha Sobran Date: Mon, 13 Jan 2025 12:43:01 -0800 Subject: [PATCH] chore: fix protected_namespaces config value PiperOrigin-RevId: 715071475 --- google/genai/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/genai/_common.py b/google/genai/_common.py index 9de798548..808eeeda5 100644 --- a/google/genai/_common.py +++ b/google/genai/_common.py @@ -185,7 +185,7 @@ class BaseModel(pydantic.BaseModel): alias_generator=alias_generators.to_camel, populate_by_name=True, from_attributes=True, - protected_namespaces={}, + protected_namespaces=(), extra='forbid', # This allows us to use arbitrary types in the model. E.g. PIL.Image. arbitrary_types_allowed=True,