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

google-generativeai #1720

Closed
1 task done
uc-labs-llc opened this issue Feb 10, 2025 · 1 comment
Closed
1 task done

google-generativeai #1720

uc-labs-llc opened this issue Feb 10, 2025 · 1 comment

Comments

@uc-labs-llc
Copy link

File Name

medai.py

What happened?

from google.generativeai import text_generation
ImportError: cannot import name 'text_generation' from 'google.generativeai' (/home/cliff/.venv/lib/python3.12/site-packages/google/generativeai/init.py). Did you mean: 'get_operation'?

Have a simple python script that won't run based on this error. Have tried various clean Python Virtual Environments with fresh installs and same thing.

google-generativeai 0.8.4

import os
import json
import psycopg2
from google.generativeai import text_generation
import requests

Relevant log output

from google.generativeai import text_generation
ImportError: cannot import name 'text_generation' from 'google.generativeai' (/home/cliff/.venv/lib/python3.12/site-packages/google/generativeai/__init__.py). Did you mean: 'get_operation'?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@uc-labs-llc
Copy link
Author

The code was created by Google Gemini and through several attempts to get it working using different test and methods Google Gemini said to open a BUG REPORT.

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

1 participant