-
Notifications
You must be signed in to change notification settings - Fork 778
Description
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Is this a client library issue or a product issue? We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.
If the support paths suggested above still do not result in a resolution, please provide the following details.
from google import genaimypy complains Module "google" has no attribute "genai". I think it's because of your namespacing, google has no __init__.py so it's not a package, it's a namespace. So you can do import google.genai as genai but this isn't great, and also incorrect (any linter will replace it will from google import genai`.
So right now you have to do import google.genai and just use it like that, or add a type: ignore on the import. Or, you can update your docs to do from google.genai import Client