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 b23546f commit a1e4e16Copy full SHA for a1e4e16
google/generativeai/generative_models.py
@@ -122,15 +122,15 @@ class GenerativeModel:
122
>>> genai.configure(api_key='YOUR_API_KEY')
123
>>> model = genai.GenerativeModel('models/gemini-pro')
124
>>> result = model.generate_content('Tell me a story about a magic backpack')
125
- >>> response.text
+ >>> result.text
126
"In the quaint little town of Lakeside, there lived a young girl named Lily..."
127
128
Multimodal input:
129
130
131
>>> result = model.generate_content([
132
... "Give me a recipe for these:", PIL.Image.open('scones.jpeg')])
133
134
"**Blueberry Scones** ..."
135
136
Multi-turn conversation:
0 commit comments