Skip to content

feat: support using the passed credentials in AsyncLive::connect#738

Merged
yinghsienwu merged 2 commits intogoogleapis:mainfrom
BalasubramanyamEvani:main
Apr 29, 2025
Merged

feat: support using the passed credentials in AsyncLive::connect#738
yinghsienwu merged 2 commits intogoogleapis:mainfrom
BalasubramanyamEvani:main

Conversation

@BalasubramanyamEvani
Copy link
Copy Markdown
Contributor

Description

Reference Issue: #717

Added functionality to google/genai/live AsyncLive::connect method:

When a credentials object is provided during client creation (genai.Client), that credential token will be used. If no credentials object is provided (i.e. None), the flow retrieves the bearer token from Application Default Credentials.

How Has This Been Tested?

I ran pytests for the live api under google/genai/tests/live

Checklist

  • My code follows the project's style structure
  • I have performed a self-review of my code
  • I have added tests that prove the feature works

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@yinghsienwu yinghsienwu merged commit 8f390cf into googleapis:main Apr 29, 2025
12 checks passed
pull Bot pushed a commit to Stars1233/python-genai that referenced this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants