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

It appears as though helper_types is not included in the types file in the v0.5.4 tag, but exists in main #358

Open
homer6 opened this issue May 24, 2024 · 2 comments
Assignees
Labels
component:python sdk Issue/PR related to Python SDK status:triaged Issue/PR triaged to the corresponding sub-team type:help Support-related issues

Comments

@homer6
Copy link

homer6 commented May 24, 2024

          Oh, it looks like `helper_types` is not included in the types file:
cannot import name 'helper_types' from 'google.generativeai.types' (/opt/venv/lib/python3.10/site-packages/google/generativeai/types/__init__.py)

@markmcd

Originally posted by @homer6 in #335 (comment)

@homer6 homer6 changed the title It appears as though helper_types is not included in the types file in the v0.5.4 tag, but exists in main It appears as though helper_types is not included in the types file in the v0.5.4 tag, but exists in main May 24, 2024
@mayureshagashe2105
Copy link
Contributor

mayureshagashe2105 commented May 24, 2024

Please note that the main branch is unstable. helper_types was added in #297 which was post v0.5.4. This should be available in future releases.

refer to the change-log here:
v0.5.4...main

@homer6
Copy link
Author

homer6 commented May 24, 2024

I see that #341 is in that release. I was trying to use that feature, which appears to require helper_types.

Example: https://github.com/MarkDaoust/generative-ai-python/blob/a3cfdde4b08bce67371a56b0d38723eb9421e413/tests/test_generative_models.py#L1291

@singhniraj08 singhniraj08 added status:triaged Issue/PR triaged to the corresponding sub-team component:python sdk Issue/PR related to Python SDK type:help Support-related issues labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK status:triaged Issue/PR triaged to the corresponding sub-team type:help Support-related issues
Projects
None yet
Development

No branches or pull requests

4 participants