Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ class GeminiReActAgent:
|
|
| 38 |
raise ValueError("GEMINI_API_KEY not set")
|
| 39 |
|
| 40 |
# Direct REST API endpoint for Gemini 2.5 Flash
|
| 41 |
-
self.url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key={self.api_key}"
|
| 42 |
print("Vanilla ReAct Gemini Agent initialized with rate-limit handling.")
|
| 43 |
|
| 44 |
def call_gemini(self, history) -> str:
|
|
|
|
| 38 |
raise ValueError("GEMINI_API_KEY not set")
|
| 39 |
|
| 40 |
# Direct REST API endpoint for Gemini 2.5 Flash
|
| 41 |
+
self.url = f"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key={self.api_key}"
|
| 42 |
print("Vanilla ReAct Gemini Agent initialized with rate-limit handling.")
|
| 43 |
|
| 44 |
def call_gemini(self, history) -> str:
|