Initial commit — Serveur Lucas SmartEye
API réception alertes chute (SmartEye/YOLO), analyse IA (Gemini 2.5 Flash), gestion alertes avec escalade (watchdog), notifications Firebase, dashboard web, documentation MkDocs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
17
test_annuaire.py
Normal file
17
test_annuaire.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import google.generativeai as genai
|
||||
import os
|
||||
|
||||
# Configure ta clé API ici (remplace par la vraie !)
|
||||
os.environ["GOOGLE_API_KEY"] = "AIzaSyC5wIc9nrhtbVesHqodil6V6-WIxkJFSHA"
|
||||
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|
||||
|
||||
print("--- DEBUT DU TEST ---")
|
||||
try:
|
||||
print("Interrogation de Google...")
|
||||
for m in genai.list_models():
|
||||
# On cherche uniquement les modèles qui voient (vision)
|
||||
if 'vision' in m.name or 'gemini-1.5' in m.name or 'pro' in m.name:
|
||||
print(f"✅ MODÈLE DISPO : {m.name}")
|
||||
except Exception as e:
|
||||
print(f"❌ ERREUR CRITIQUE : {e}")
|
||||
print("--- FIN DU TEST ---")
|
||||
Reference in New Issue
Block a user