AumCoreAI commited on
Commit
7daf850
·
verified ·
1 Parent(s): 3bc54f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -557,14 +557,6 @@ async def chat(message: str = Form(...)):
557
  print(f"⚠️ TiDB save error (code): {e}")
558
  return {"response": code_response}
559
 
560
- # ✅ GET HISTORY FROM TiDB (instead of JSON)
561
- recent_chats = []
562
- try:
563
- recent_chats = tidb_memory.get_recent_chats(limit=10)
564
- except Exception as e:
565
- print(f"⚠️ TiDB history fetch error: {e}")
566
- # Fallback to empty history if TiDB fails
567
-
568
  # ✅ GET HISTORY FROM TiDB (instead of JSON)
569
  recent_chats = []
570
  try:
 
557
  print(f"⚠️ TiDB save error (code): {e}")
558
  return {"response": code_response}
559
 
 
 
 
 
 
 
 
 
560
  # ✅ GET HISTORY FROM TiDB (instead of JSON)
561
  recent_chats = []
562
  try: