Pepguy commited on
Commit
7d40609
·
verified ·
1 Parent(s): 9572d83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}?user_id={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
 
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