Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ def cleanup_inactive_users():
|
|
| 138 |
def get_user_history(uid):
|
| 139 |
if uid not in user_memory:
|
| 140 |
try:
|
| 141 |
-
resp = requests.get(f"{LAMBDA_URL}?
|
| 142 |
resp.raise_for_status()
|
| 143 |
loaded_history = resp.json().get("history", [])
|
| 144 |
# Only keep the most recent MAX_MEMORY_MESSAGES when loading
|
|
|
|
| 138 |
def get_user_history(uid):
|
| 139 |
if uid not in user_memory:
|
| 140 |
try:
|
| 141 |
+
resp = requests.get(f"{LAMBDA_URL}?userid={uid}", timeout=5)
|
| 142 |
resp.raise_for_status()
|
| 143 |
loaded_history = resp.json().get("history", [])
|
| 144 |
# Only keep the most recent MAX_MEMORY_MESSAGES when loading
|