fix api key inconsistency and cleanup in live api quickstart#1189
fix api key inconsistency and cleanup in live api quickstart#1189knQzx wants to merge 5 commits into
Conversation
|
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. |
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
I have signed the CLA |
|
Hi @knQzx, Thanks for reaching out us! Regarding you PR few checks were failing, Could you please have a look once. Thanks |
|
pushed nbfmt formatting only - content is identical just whitespace so notebook format should pass notebook lint will still fail on google::inclusive_language - it flags the word native in the model id gemini-2.5-flash-native-audio-preview-09-2025 which is a product name and can't be renamed same thing happens on main for this file - lint just doesn't surface there because it only runs on notebooks touched by a pr - 5 other notebooks in main also reference native-audio (Browser_as_a_tool, LiveAPI_plotting_and_mapping, Get_started_LiveAPI_tools, Models, Search_Grounding) the native-audio guard is literally the fix for #948 so removing it to please the linter doesn't make sense on your side you could add --exclude_lint=google::inclusive_language to the workflow or whitelist product ids in the wordlist also the run is stuck in action_required - could you approve it |
|
Marking this pull request as stale since it has been open for 14 days with no activity. This PR will be closed if no further activity occurs. |
| "client = genai.Client(api_key=GOOGLE_API_KEY)" | ||
| ] | ||
| "source": "from google import genai\nfrom google.genai import types\nclient = genai.Client(api_key=os.environ.get('GOOGLE_API_KEY'))" | ||
| }, |
There was a problem hiding this comment.
When I run this cell in Colab, it throws a NameError: name 'GOOGLE_API_KEY' is not defined. We need to fetch the key from the environment.
|
@knQzx this is great, thanks so much. Could you also update the |
…del to gemini-3.1-flash-live-preview
|
@thorwebdev done in 161c951
native-audio guard left in place - now only fires if someone manually picks the native-audio model from the dropdown |
|
Hey @knQzx I'm sorry, I should have mentioned that Would you be up for changing every cell to AUDIO by any chance and removing the initial Text to Text cell, seeing that the only model that used to support this has since been deprecated? https://ai.google.dev/gemini-api/docs/deprecations#live-api-models Sorry about that! |
thanks @thorwebdev, all good. closin this in favor of #1222 which has the broader cleanup anyway. happy to help on the next one!! |
Summary
Test plan
fixes #948