AttributeError: module 'google.generativeai' has no attribute 'GenerativeModel' #656
Labels
component:python sdk
Issue/PR related to Python SDK
status:awaiting user response
Awaiting a response from the author
status:stale
Issue/PR will be closed automatically if there's no further activity
type:bug
Something isn't working
Description of the bug:
When I tried to call the API using the official documents, the following problems appeared:
Traceback (most recent call last):
File "A:****\openai_service.py", line 80, in
model = genai.GenerativeModel("gemini-1.5-flash")
AttributeError: module 'google.generativeai' has no attribute 'GenerativeModel'
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: