Skip to content

fix(genai): update 5 samples to gemini-3.8-flash and remove deprecated temperature=0 - #14676

Open
iennae wants to merge 1 commit into
mainfrom
fix/genai-gemini-3-8-flash
Open

iennae wants to merge 1 commit into
mainfrom
fix/genai-gemini-3-8-flash

Conversation

@iennae

@iennae iennae commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Description

  • Updates five genai/ samples (ctrlgen_with_class_schema.py, counttoken_with_txt.py, textgen_chat_with_txt.py, textgen_with_txt.py, and tools_func_def_with_txt.py) to the latest gemini-3.8-flash model.
  • Removes deprecated temperature=0 from GenerateContentConfig in genai/tools/tools_func_def_with_txt.py.
  • Aligns genai/tools/test_tools_examples.py (GOOGLE_CLOUD_LOCATION = "global") and genai/tools/requirements.txt (google-genai==2.29.0) with the other genai/ test suites.

@iennae
iennae requested review from a team as code owners October 24, 2026 17:48
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Oct 24, 2026

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

Copy link
Copy Markdown
Contributor

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 Gemini model version from 'gemini-3.5-flash' to 'gemini-3.8-flash' across several example scripts, including controlled generation, token counting, chat, and text generation. It also upgrades the 'google-genai' package dependency to version 2.29.0 in the tools requirements, changes the 'GOOGLE_CLOUD_LOCATION' environment variable to 'global' in the test suite, and removes the 'temperature' configuration from the function definition tool example. There are no review comments, and I have no feedback to provide.

…d temperature=0

Update five Google GenAI SDK samples (`ctrlgen_with_class_schema.py`,
`counttoken_with_txt.py`, `textgen_chat_with_txt.py`, `textgen_with_txt.py`,
and `tools_func_def_with_txt.py`) to use the latest `gemini-3.8-flash` model.

In `genai/tools/tools_func_def_with_txt.py`, remove `temperature=0` from
`GenerateContentConfig`, as setting temperature below 1.0 is deprecated for
Gemini 3.x models. Also update `genai/tools/test_tools_examples.py` to use
`GOOGLE_CLOUD_LOCATION = "global"` and `genai/tools/requirements.txt` to
`google-genai==2.29.0` for consistency with the other `genai/` test suites.
@iennae
iennae force-pushed the fix/genai-gemini-3-8-flash branch from d87195b to 00af603 Compare October 24, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant