File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -582,12 +582,15 @@ If you put a list within a list, the inner list can only contain
582582
583583The output of the model can be influenced by several optional settings
584584available in generate_content's config parameter. For example, increasing
585- ` max_output_tokens ` is essential for longer model responses. To make a model more
586- deterministic, lowering the ` temperature ` parameter reduces randomness, with
587- values near 0 minimizing variability. Capabilities and parameter defaults for
588- each model is shown in the
585+ ` max_output_tokens ` is essential for longer model responses. To make a model
586+ more deterministic, lowering the ` temperature ` parameter reduces randomness,
587+ with values near 0 minimizing variability. Capabilities and parameter defaults
588+ for each model is shown in the
589589[ Vertex AI docs] ( https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash )
590- and [ Gemini API docs] ( https://ai.google.dev/gemini-api/docs/models ) respectively.
590+ and [ Gemini API docs] ( https://ai.google.dev/gemini-api/docs/models )
591+ respectively. Note that all API methods support Pydantic types and
592+ dictionaries, which you can access from ` google.genai.types ` . In this example,
593+ we use GenerateContentConfig to specify the desired behavior from the model.
591594
592595``` python
593596from google.genai import types
You can’t perform that action at this time.
0 commit comments