Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ class SmartAgent:
|
|
| 71 |
if not self.api_key:
|
| 72 |
raise ValueError("GEMINI_API_KEY environment variable not set!")
|
| 73 |
# Gemini 1.5 Flash - FREE tier: 1500 requests/day, 1M tokens/min
|
| 74 |
-
self.api_url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-
|
| 75 |
print("SmartAgent initialized with Gemini 1.5 Flash (FREE - 1500 req/day)")
|
| 76 |
|
| 77 |
def call_llm(self, prompt: str) -> str:
|
|
|
|
| 71 |
if not self.api_key:
|
| 72 |
raise ValueError("GEMINI_API_KEY environment variable not set!")
|
| 73 |
# Gemini 1.5 Flash - FREE tier: 1500 requests/day, 1M tokens/min
|
| 74 |
+
self.api_url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key={self.api_key}"
|
| 75 |
print("SmartAgent initialized with Gemini 1.5 Flash (FREE - 1500 req/day)")
|
| 76 |
|
| 77 |
def call_llm(self, prompt: str) -> str:
|