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 948a5a8 commit 448486aCopy full SHA for 448486a
google/generativeai/types/generation_types.py
@@ -73,7 +73,7 @@ class BrokenResponseError(Exception):
73
pass
74
75
76
-class GenerationConfigDict(TypedDict):
+class GenerationConfigDict(TypedDict, total=False):
77
# TODO(markdaoust): Python 3.11+ use `NotRequired`, ref: https://peps.python.org/pep-0655/
78
candidate_count: int
79
stop_sequences: Iterable[str]
0 commit comments