From f47cb88586c278c97d0bee2cf7232f16351dc385 Mon Sep 17 00:00:00 2001 From: Jeff Scudder Date: Wed, 22 Apr 2026 15:59:49 -0700 Subject: [PATCH] chore: Update README to explain GenerateContentConfig parameter. PiperOrigin-RevId: 904098080 --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index db121f339..f57179bdd 100644 --- a/README.md +++ b/README.md @@ -582,12 +582,15 @@ If you put a list within a list, the inner list can only contain The output of the model can be influenced by several optional settings available in generate_content's config parameter. For example, increasing -`max_output_tokens` is essential for longer model responses. To make a model more -deterministic, lowering the `temperature` parameter reduces randomness, with -values near 0 minimizing variability. Capabilities and parameter defaults for -each model is shown in the +`max_output_tokens` is essential for longer model responses. To make a model +more deterministic, lowering the `temperature` parameter reduces randomness, +with values near 0 minimizing variability. Capabilities and parameter defaults +for each model is shown in the [Vertex AI docs](https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash) -and [Gemini API docs](https://ai.google.dev/gemini-api/docs/models) respectively. +and [Gemini API docs](https://ai.google.dev/gemini-api/docs/models) +respectively. Note that all API methods support Pydantic types and +dictionaries, which you can access from `google.genai.types`. In this example, +we use GenerateContentConfig to specify the desired behavior from the model. ```python from google.genai import types