Skip to content

Commit 242571d

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Disable bound token sharing check for this Vertex AI SDK code path: google3/third_party/py/google/cloud/aiplatform/vertexai/agent_engines/
PiperOrigin-RevId: 907164665
1 parent 6f89fd3 commit 242571d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • vertexai/agent_engines/templates

vertexai/agent_engines/templates/adk.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -818,11 +818,6 @@ def set_up(self):
818818
from google.adk.memory.in_memory_memory_service import InMemoryMemoryService
819819

820820
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "1"
821-
# --- BEGIN BOUND TOKEN PATCH ---
822-
# Set GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to false
823-
# to disable bound token sharing.
824-
os.environ["GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES"] = "false"
825-
# --- END BOUND TOKEN PATCH ---
826821
project = self._tmpl_attrs.get("project")
827822
if project:
828823
os.environ["GOOGLE_CLOUD_PROJECT"] = project

0 commit comments

Comments
 (0)