Skip to content

fix api key inconsistency and cleanup in live api quickstart#1189

Open
knQzx wants to merge 2 commits intogoogle-gemini:mainfrom
knQzx:fix-live-api-notebook
Open

fix api key inconsistency and cleanup in live api quickstart#1189
knQzx wants to merge 2 commits intogoogle-gemini:mainfrom
knQzx:fix-live-api-notebook

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Apr 4, 2026

Summary

  • fixed undefined GOOGLE_API_KEY variable — now reads from os.environ like the rest of the notebook
  • added a warning when native-audio model is selected since it doesn't support TEXT response modality
  • removed redundant client/model redefinition in the resumable sessions section

Test plan

  • verified notebook cells reference the correct api key variable
  • verified model guard prints warning for native-audio models
  • verified resumable sessions section works without redundant client init

fixes #948

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 4, 2026

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.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:quickstarts Issues/PR referencing quickstarts folder labels Apr 4, 2026
@knQzx
Copy link
Copy Markdown
Author

knQzx commented Apr 4, 2026

I have signed the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:quickstarts Issues/PR referencing quickstarts folder status:awaiting review PR awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Gemini Live API Cookbook

1 participant