Commit
·
e34b7d2
1
Parent(s):
0d2e411
Revert to google.generativeai - new google.genai has different API
Browse files- Revert import back to google.generativeai (still works despite deprecation warning)
- Keep google-generativeai in requirements.txt
- The new google.genai package requires significant API changes (Client class instead of GenerativeModel)
- Will do proper migration later when we can test the new API thoroughly
- requirements.txt +1 -1
- src/core.py +1 -1
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
fastapi
|
| 2 |
uvicorn[standard]
|
| 3 |
python-multipart
|
| 4 |
-
google-
|
| 5 |
python-dotenv
|
| 6 |
numpy
|
| 7 |
opencv-python-headless
|
|
|
|
| 1 |
fastapi
|
| 2 |
uvicorn[standard]
|
| 3 |
python-multipart
|
| 4 |
+
google-generativeai
|
| 5 |
python-dotenv
|
| 6 |
numpy
|
| 7 |
opencv-python-headless
|
src/core.py
CHANGED
|
@@ -14,7 +14,7 @@ import base64
|
|
| 14 |
import cv2
|
| 15 |
import numpy as np
|
| 16 |
from PIL import Image
|
| 17 |
-
import google.
|
| 18 |
|
| 19 |
log = logging.getLogger(__name__)
|
| 20 |
|
|
|
|
| 14 |
import cv2
|
| 15 |
import numpy as np
|
| 16 |
from PIL import Image
|
| 17 |
+
import google.generativeai as genai
|
| 18 |
|
| 19 |
log = logging.getLogger(__name__)
|
| 20 |
|