Skip to content

Commit 08a8d74

Browse files
authored
Merge pull request #19 from Sanjeev-Kumar78/main
Updated google-genai sdk
2 parents 2943eae + 6b0d6ab commit 08a8d74

File tree

6 files changed

+19
-140
lines changed

6 files changed

+19
-140
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ build/
55
dist/
66
wheels/
77
*.egg-info
8+
uv.lock
89

910
# Virtual environments
1011
.venv

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ pixly/
181181

182182
- **UI/Frontend**: CustomTkinter (modern theming and widgets for Python GUIs)
183183
- **API/Backend**: FastAPI (async Python web framework) + Uvicorn (ASGI server)
184-
- **AI**: Google Gemini 2.5 Flash Lite via `google-generativeai`
184+
- **AI**: Google Gemini 2.5 Flash Lite via `google-genai`SDK.
185185
- **RAG**: Chroma (persistent local vector DB) + sentence-transformers (embeddings)
186186
- **Data**: CSV-based per-game knowledge; SQLite for screenshots; Fernet for encryption
187187
- **System**: psutil + pywin32 for Windows process/window info; Pillow for imaging

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ dependencies = [
1414
"keyboard>=0.13.5",
1515
"requests>=2.32.5",
1616
"uvicorn>=0.37.0",
17-
"google-generativeai>=0.8.3",
1817
"pillow>=10.0.0",
1918
"dotenv>=0.9.9",
2019
"psutil>=5.9.0",
21-
"pywin32>=306",
20+
"pywin32>=306; sys_platform == 'win32'",
2221
"cryptography>=41.0.0",
2322
"chromadb>=0.4.0",
2423
"sentence-transformers>=2.2.2",
2524
"beautifulsoup4>=4.12.0",
2625
"pandas>=2.0.0",
2726
"lxml>=4.9.0",
2827
"pytest>=8.4.2",
28+
"google-genai>=1.45.0",
2929
]
3030

3131
[project.optional-dependencies]

services/chatbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
""" Includes gemini chatbot integration"""
22
import os
3-
import google.generativeai as genai
3+
from google import genai
44
from dotenv import load_dotenv
55
from services.screenshot import get_recent_screenshots, get_screenshot_by_id, get_screenshot_stats
66
from services.game_detection import detect_current_game

uv.lock

Lines changed: 14 additions & 135 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)