Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions google/genai/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,10 @@ def __del__(self) -> None:
class BaseApiClient:
"""Client for calling HTTP APIs sending and receiving JSON."""

## Set GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to false
## to disable bound token sharing.
os.Setenv("GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES", "false")

def __init__(
self,
vertexai: Optional[bool] = None,
Expand Down
Loading