Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -774,12 +774,12 @@ Your goal: Provide the EXACT answer in the EXACT format requested.
|
|
| 774 |
try:
|
| 775 |
# --- Initialize ONE Powerful LLM for all tasks ---
|
| 776 |
self.llm_with_tools = ChatGoogleGenerativeAI(
|
| 777 |
-
model="gemini-pro", # Use Gemini
|
| 778 |
google_api_key=GEMINI_API_KEY,
|
| 779 |
temperature=0,
|
| 780 |
convert_system_message_to_human=True # Helps with compatibility
|
| 781 |
).bind_tools(self.tools)
|
| 782 |
-
print("✅ Main LLM (Gemini
|
| 783 |
|
| 784 |
except Exception as e:
|
| 785 |
print(f"❌ Error initializing Gemini: {e}")
|
|
|
|
| 774 |
try:
|
| 775 |
# --- Initialize ONE Powerful LLM for all tasks ---
|
| 776 |
self.llm_with_tools = ChatGoogleGenerativeAI(
|
| 777 |
+
model="gemini/gemini-2.5-pro", # Use Gemini 2.5 Pro
|
| 778 |
google_api_key=GEMINI_API_KEY,
|
| 779 |
temperature=0,
|
| 780 |
convert_system_message_to_human=True # Helps with compatibility
|
| 781 |
).bind_tools(self.tools)
|
| 782 |
+
print("✅ Main LLM (Gemini 2.5 Pro with tools) initialized.")
|
| 783 |
|
| 784 |
except Exception as e:
|
| 785 |
print(f"❌ Error initializing Gemini: {e}")
|