Skip to content

Commit 2e62fae

Browse files
Update __init__.py to use the latest model (google-gemini#362)
* Update __init__.py * Grammar --------- Co-authored-by: Mark McDonald <macd@google.com>
1 parent 0dca4ce commit 2e62fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/generativeai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
3131
genai.configure(api_key=os.environ['API_KEY'])
3232
33-
model = genai.GenerativeModel(name='gemini-pro')
34-
response = model.generate_content('Please summarise this document: ...')
33+
model = genai.GenerativeModel(name='gemini-1.5-flash')
34+
response = model.generate_content('Teach me about how an LLM works')
3535
3636
print(response.text)
3737
```

0 commit comments

Comments
 (0)