chore(07): remove deprecated bash scripts and legacy env files

This commit is contained in:
2026-04-23 12:56:30 +03:00
parent 01e30ba7b5
commit d9dffdc389
14 changed files with 165 additions and 512 deletions

View File

@@ -5,6 +5,7 @@ import logging
from PIL import Image
from google import genai
from google.genai import types
from ..config_loader import get_config
log = logging.getLogger("ainventory")
@@ -18,9 +19,10 @@ def get_best_models():
]
def extract(image_bytes: bytes, prompt: str):
api_key = os.environ.get("GEMINI_API_KEY")
config = get_config()
api_key = config.get("ai", {}).get("gemini_api_key")
if not api_key:
log.error("CRITICAL: GEMINI_API_KEY is MISSING in environment!")
log.error("CRITICAL: gemini_api_key is MISSING in configuration!")
return None
# Log partial key for safety debug