File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
google/generativeai/types Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class GenerationConfigDict(TypedDict):
79
79
stop_sequences : Iterable [str ]
80
80
max_output_tokens : int
81
81
temperature : float
82
+ response_mime_type : str
82
83
83
84
84
85
@dataclasses .dataclass
@@ -138,6 +139,13 @@ class GenerationConfig:
138
139
Note: The default value varies by model, see the
139
140
`Model.top_k` attribute of the `Model` returned the
140
141
`genai.get_model` function.
142
+
143
+ response_mime_type:
144
+ Optional. Output response mimetype of the generated candidate text.
145
+
146
+ Supported mimetype:
147
+ `text/plain`: (default) Text output.
148
+ `application/json`: JSON response in the candidates.
141
149
"""
142
150
143
151
candidate_count : int | None = None
@@ -146,6 +154,7 @@ class GenerationConfig:
146
154
temperature : float | None = None
147
155
top_p : float | None = None
148
156
top_k : int | None = None
157
+ response_mime_type : str | None = None
149
158
150
159
151
160
GenerationConfigType = Union [glm .GenerationConfig , GenerationConfigDict , GenerationConfig ]
You can’t perform that action at this time.
0 commit comments