Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -46,8 +46,14 @@ sys_msg = SystemMessage(content=system_prompt)
|
|
| 46 |
|
| 47 |
# Loading the assistant
|
| 48 |
#chat = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
tools = [add,
|
| 53 |
substract,
|
|
|
|
| 46 |
|
| 47 |
# Loading the assistant
|
| 48 |
#chat = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=0)
|
| 49 |
+
chat = ChatGoogleGenerativeAI(
|
| 50 |
+
model="gemini-2.5-flash-preview-04-17",
|
| 51 |
+
temperature=0,
|
| 52 |
+
max_retries=1,
|
| 53 |
+
rate_limiter=InMemoryRateLimiter(
|
| 54 |
+
requests_per_second=1/60,
|
| 55 |
+
),
|
| 56 |
+
)
|
| 57 |
|
| 58 |
tools = [add,
|
| 59 |
substract,
|