diff --git a/google/generativeai/types/generation_types.py b/google/generativeai/types/generation_types.py index 99c08c4df..57ce2e0de 100644 --- a/google/generativeai/types/generation_types.py +++ b/google/generativeai/types/generation_types.py @@ -327,7 +327,7 @@ def text(self): if len(parts) != 1 or "text" not in parts[0]: raise ValueError( "The `response.text` quick accessor only works for " - "simple (single-`Part`) text responses. This response is not simple text." + "simple (single-`Part`) text responses. This response is not simple text. " "Use the `result.parts` accessor or the full " "`result.candidates[index].content.parts` lookup " "instead."