Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: module 'google.generativeai' has no attribute 'Client' #1542

Closed
1 task done
stevewalker-de opened this issue Dec 16, 2024 · 2 comments
Closed
1 task done

[Bug]: module 'google.generativeai' has no attribute 'Client' #1542

stevewalker-de opened this issue Dec 16, 2024 · 2 comments
Assignees

Comments

@stevewalker-de
Copy link

stevewalker-de commented Dec 16, 2024

File Name

intro_gemini_2_0_flash.ipynb

What happened?

client = genai.Client(vertexai=True, project=PROJECT_ID, location=LOCATION)

Error: "module 'google.generativeai' has no attribute 'Client'"
![image](https://github.com/user-attachments/assets/26979014-72dc-48fd-a580-e5daf5edcad9)

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@stevewalker-de
Copy link
Author

@holtskinner
Copy link
Collaborator

Looks like this notebook isn't the one being run?

https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/getting-started/intro_gemini_2_0_flash.ipynb

The imports should look like this

image

@holtskinner holtskinner self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants