Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on upgrading the codebase to utilize the 'gemini-3.1-flash-live-preview' model. This involved updating model references in various Python scripts and Jupyter notebooks, as well as adapting to changes in the Live API's input message structure and method calls. Additionally, some quickstart examples were simplified by removing deprecated or less relevant sections. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates multiple examples and quickstarts to use the gemini-3.1-flash-live-preview model and the latest Live API schema. Key changes include migrating from client_content and mediaChunks to the realtime_input structure (utilizing specific audio, video, or text fields), updating websocket URIs to the v1alpha version, and removing several sections from the notebooks, including text-to-text and resumable sessions. Feedback was provided regarding the removal of the 'Working with resumable sessions' section, noting that it might reduce the didactic value of the notebook and suggesting its re-inclusion or a reference to maintain alignment with the style guide's emphasis on educational clarity.
I am having trouble creating individual review comments. Click here to see my feedback.
quickstarts/Get_started_LiveAPI.ipynb (657-668)
The removal of the 'Working with resumable sessions' section might reduce the didactic value of this notebook. If session resumption is still a relevant feature of the Live API, consider re-introducing this section with updated examples, or provide a clear reference to where users can find this information. This aligns with the style guide's emphasis on making notebooks easy to understand and limiting the need to consult external documentation.
Refer to Repository Style Guide, lines 11-14 and 92.
References
- Code should be easy to understand for all developers. Since they are notebooks and aimed at teaching how to use Gemini and its API/SDK, the focus should be on writting didactic and easy-to-read code while limiting the back and forth with the documentation or within the notebook. (link)
- Explain what you do, the features you use, and link to existing notebooks or to the documentation for more details. (link)
37d43f2 to
11967d5
Compare
|
/assign |
https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-live-preview#migrating