Skip to content

Commit e1c31d7

Browse files
Update text only promopts (#420)
1 parent b91cbf2 commit e1c31d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/text_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class UnitTests(absltest.TestCase):
2525
def test_text_gen_text_only_prompt(self):
2626
# [START text_gen_text_only_prompt]
2727
model = genai.GenerativeModel("gemini-1.5-flash")
28-
response = model.generate_content("Give me python code to sort a list")
28+
response = model.generate_content("Write a story about a magic backpack.")
2929
print(response.text)
3030
# [END text_gen_text_only_prompt]
3131

3232
def test_text_gen_text_only_prompt_streaming(self):
3333
# [START text_gen_text_only_prompt_streaming]
3434
model = genai.GenerativeModel("gemini-1.5-flash")
35-
response = model.generate_content("Give me python code to sort a list", stream=True)
35+
response = model.generate_content("Write a story about a magic backpack.", stream=True)
3636
for chunk in response:
3737
print(chunk.text)
3838
print("_" * 80)

0 commit comments

Comments
 (0)