We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d952a commit 3612328Copy full SHA for 3612328
samples/controlled_generation.py
@@ -27,7 +27,7 @@ class Recipe(typing.TypedDict):
27
result = model.generate_content(
28
"List a few popular cookie recipes.",
29
generation_config=genai.GenerationConfig(
30
- response_mime_type="application/json", response_schema=list([Recipe])
+ response_mime_type="application/json", response_schema=list[Recipe]
31
),
32
)
33
print(result)
0 commit comments