Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad0e9f2

Browse files
ftnextMarkDaoust
andauthored
More readable error message (google-gemini#163)
* More readable error message --------- Co-authored-by: Mark Daoust <[email protected]>
1 parent 4df472e commit ad0e9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/types/generation_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def text(self):
327327
if len(parts) != 1 or "text" not in parts[0]:
328328
raise ValueError(
329329
"The `response.text` quick accessor only works for "
330-
"simple (single-`Part`) text responses. This response is not simple text."
330+
"simple (single-`Part`) text responses. This response is not simple text. "
331331
"Use the `result.parts` accessor or the full "
332332
"`result.candidates[index].content.parts` lookup "
333333
"instead."

0 commit comments

Comments
 (0)