Skip to content

Commit f47cb88

Browse files
jscudcopybara-github
authored andcommitted
chore: Update README to explain GenerateContentConfig parameter.
PiperOrigin-RevId: 904098080
1 parent b02cb95 commit f47cb88

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,15 @@ If you put a list within a list, the inner list can only contain
582582

583583
The output of the model can be influenced by several optional settings
584584
available 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
593596
from google.genai import types

0 commit comments

Comments
 (0)