Skip to content

update cookbooks#1141

Merged
patrickloeber merged 1 commit intomainfrom
update-cookbooks
Feb 19, 2026
Merged

update cookbooks#1141
patrickloeber merged 1 commit intomainfrom
update-cookbooks

Conversation

@patrickloeber
Copy link
Collaborator

No description provided.

@review-notebook-app
Copy link

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:examples Issues/PR referencing examples folder component:quickstarts Issues/PR referencing quickstarts folder labels Feb 19, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @patrickloeber, 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 updating the model references and configurations across various example notebooks and quickstart guides. The changes ensure that the documentation and code examples reflect the latest available Gemini models, including the introduction of gemini-3.1-pro-preview, and refine how these models are initialized and used, particularly concerning default settings and output handling.

Highlights

  • Model Version Updates: The gemini-3.1-pro-preview model has been added to the list of available models across numerous example notebooks and quickstart files, reflecting an update to the supported model versions.
  • Default Model Configuration: The default MODEL_ID in CONTRIBUTING.md and quickstarts/Get_started.ipynb has been updated to gemini-3-flash-preview to align with newer model recommendations.
  • Notebook Output and Configuration Refinements: Several Jupyter notebooks received minor adjustments, including corrections to output formatting, updates to generation configuration parameters like temperature, and conditional logic for displaying Markdown based on the selected model.
  • Thinking Level Clarification: Documentation and code comments related to 'thinking levels' for Gemini 3 models have been updated, specifically noting that Gemini 3.1 Pro does not support the 'minimal' thinking level.
Changelog
  • CONTRIBUTING.md
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview and set the default to gemini-3-flash-preview.
  • examples/Agents_Function_Calling_Barista_Bot.ipynb
    • Updated the model_name parameter list to include gemini-3.1-pro-preview.
  • examples/Analyze_a_Video_Classification.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Analyze_a_Video_Historic_Event_Recognition.ipynb
    • Adjusted output text to include newline characters (\r\n).
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Analyze_a_Video_Summarization.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Apollo_11.ipynb
    • Adjusted output text to include newline characters (\r\n).
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Entity_Extraction.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Google_IO2025_Live_Coding.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Guess_the_shape.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Market_a_Jet_Backpack.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Opossum_search.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb
    • Updated the model_id comment to include gemini-3.1-pro-preview.
  • examples/Search_grounding_for_research_report.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Search_reranking_using_embeddings.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Story_Writing_with_Prompt_Chaining.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Talk_to_documents_with_embeddings.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Translate_a_Public_Domain_Book.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Upload_files_to_Colab.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Virtual_Try_On.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/Working_with_Charts_Graphs_and_Slide_Decks.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/chromadb/Vectordb_with_chroma.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/google-adk/Getting_started_with_ADK.ipynb
    • Updated the GEMINI_MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/json_capabilities/Entity_Extraction_JSON.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/json_capabilities/Sentiment_Analysis.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/json_capabilities/Text_Classification.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/json_capabilities/Text_Summarization.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/mlflow/MLflow_Observability.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/multi_spectral_remote_sensing.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Adding_context_information.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Basic_Code_Generation.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Basic_Evaluation.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Basic_Information_Extraction.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Basic_Reasoning.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Chain_of_thought_prompting.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Few_shot_prompting.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Role_prompting.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Self_ask_prompting.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • examples/prompting/Zero_shot_prompting.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts-js/Audio.js
    • Updated the MODEL_ID comment to include gemini-3.1-pro-preview.
  • quickstarts-js/Counting_Tokens.js
    • Updated the MODEL_ID comment to include gemini-3.1-pro-preview.
  • quickstarts-js/File_API.js
    • Updated the MODEL_ID comment to include gemini-3.1-pro-preview.
  • quickstarts-js/Get_Started.js
    • Updated the default MODEL_ID to gemini-3-flash-preview and included gemini-3.1-pro-preview in the comment.
  • quickstarts/Asynchronous_requests.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Audio.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Authentication.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Batch_mode.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Caching.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Code_Execution.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Counting_Tokens.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Embeddings.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Enum.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Error_handling.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/File_API.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/File_Search.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Function_calling.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Get_started.ipynb
    • Updated the default MODEL_ID to gemini-3-flash-preview and included gemini-3.1-pro-preview in the parameter list.
    • Updated the temperature configuration from 0.4 to 1.0 for content generation.
    • Changed the model parameter in generateContentStream from a hardcoded string to the MODEL_ID variable.
    • Added conditional logic to display Markdown for source generation only if the MODEL_ID does not start with 'gemini-3'.
    • Changed Markdown(response.text) to display(Markdown(response.text)) for consistent output display.
    • Removed the explicit temperature=0 setting from GenerateContentConfig when using tools.
    • Updated the model field in cached content output from gemini-3-pro-preview to gemini-3.1-pro-preview.
    • Updated the GEMINI_3_MODEL_ID parameter list to include gemini-3.1-pro-preview.
    • Updated the comment regarding thinking levels to state that Gemini 3.1 Pro does not support 'minimal'.
    • Changed the default thinking_level from 'High' to 'high' (lowercase).
  • quickstarts/Get_started_OpenAI_Compatibility.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Get_started_interactions_api.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Get_started_thinking.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
    • Updated the GEMINI_3_MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Get_started_thinking_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
    • Updated the GEMINI3_MODEL_ID parameter list and default to gemini-3.1-pro-preview.
  • quickstarts/Grounding.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/JSON_mode.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/PDF_Files.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Prompting.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Safety.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Spatial_understanding.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Streaming.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/System_instructions.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Template.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/Video_understanding.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Audio_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Function_calling_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Function_calling_config_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/JSON_mode_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Models_REST.ipynb
    • Updated the model ID in the curl command from gemini-3-pro-preview to gemini-3.1-pro-preview.
  • quickstarts/rest/Prompting_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Safety_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Search_Grounding.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Streaming_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/System_instructions_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
  • quickstarts/rest/Video_REST.ipynb
    • Updated the MODEL_ID parameter list to include gemini-3.1-pro-preview.
Ignored Files
  • Ignored by pattern: .gemini/** (1)
    • .gemini/styleguide.md
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the list of available Gemini models across numerous notebooks and files, replacing gemini-3-pro-preview with gemini-3.1-pro-preview. The changes are mostly correct, but I found a couple of issues. A recurring error in many notebooks is that the default model in the Colab form is not present in the list of options. Additionally, one notebook does not use a Colab form for model selection, which goes against the repository's style guide. I've added specific comments with suggestions for these issues.

@patrickloeber patrickloeber merged commit 2dfa77f into main Feb 19, 2026
4 of 6 checks passed
@patrickloeber patrickloeber deleted the update-cookbooks branch February 19, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:examples Issues/PR referencing examples folder 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.

2 participants