Spaces:
Sleeping
Sleeping
Update crew_utils.py
Browse files- crew_utils.py +2 -5
crew_utils.py
CHANGED
@@ -12,14 +12,11 @@ pdf_tool = PDFTool()
|
|
12 |
|
13 |
# --- Définition du LLM (Gemini) ---
|
14 |
# Remplace par ta clé API
|
15 |
-
api_key = "VOTRE_CLE_API_GOOGLE_AI_STUDIO"
|
16 |
|
17 |
-
|
18 |
-
if not api_key:
|
19 |
-
raise ValueError("La clé API Google AI Studio n'est pas définie. Veuillez la configurer comme variable d'environnement GOOGLE_API_KEY.")
|
20 |
|
21 |
llm = ChatGoogleGenerativeAI(
|
22 |
-
model="gemini-
|
23 |
)
|
24 |
|
25 |
# --- Définition des agents ---
|
|
|
12 |
|
13 |
# --- Définition du LLM (Gemini) ---
|
14 |
# Remplace par ta clé API
|
|
|
15 |
|
16 |
+
api_key = "AIzaSyD6yZxfVOnh63GXBJjakAupk9aP4CZrgrQ"
|
|
|
|
|
17 |
|
18 |
llm = ChatGoogleGenerativeAI(
|
19 |
+
model="gemini-1.5-flash", google_api_key=api_key, temperature=0.7
|
20 |
)
|
21 |
|
22 |
# --- Définition des agents ---
|