Skip to content

Commit 4691610

Browse files
authored
Fix additional_headers fallback in validate_parms_base (#700)
1 parent 1e1a1b7 commit 4691610

File tree

1 file changed

+1
-1
lines changed
  • libs/vertexai/langchain_google_vertexai

1 file changed

+1
-1
lines changed

libs/vertexai/langchain_google_vertexai/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def validate_params_base(cls, values: dict) -> Any:
118118
if values.get("client_cert_source"):
119119
client_options.client_cert_source = values["client_cert_source"]
120120
values["client_options"] = client_options
121-
additional_headers = values.get("additional_headers", {})
121+
additional_headers = values.get("additional_headers") or {}
122122
values["default_metadata"] = tuple(additional_headers.items())
123123
return values
124124

0 commit comments

Comments
 (0)