Skip to content

Commit 7f1ad45

Browse files
philippemironPhilippe Miron
andauthored
change argument name to model_name (#394)
Co-authored-by: Philippe Miron <[email protected]>
1 parent b6bd3ca commit 7f1ad45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
3131
genai.configure(api_key=os.environ['API_KEY'])
3232
33-
model = genai.GenerativeModel(name='gemini-1.5-flash')
33+
model = genai.GenerativeModel(model_name='gemini-1.5-flash')
3434
response = model.generate_content('Teach me about how an LLM works')
3535
3636
print(response.text)

0 commit comments

Comments
 (0)