randydev commited on
Commit
a2a90cc
·
verified ·
1 Parent(s): c135086

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +1 -1
chatbot/plugins/chat.py CHANGED
@@ -1402,7 +1402,7 @@ async def chatbot_talk(client: Client, message: Message):
1402
 
1403
  if check_is_system.get("is_deepsearch", False):
1404
  uuid_code = str(uuid.uuid4())[:8]
1405
- backup_chat = await db._get_chatbot_chat_from_db(user_id)
1406
  backup_chat.append({"role": "user", "parts": [{"text": prompt}]})
1407
  results = await search_auto_by_cohere(message.from_user.id, query_base)
1408
  if len(results) > 4096:
 
1402
 
1403
  if check_is_system.get("is_deepsearch", False):
1404
  uuid_code = str(uuid.uuid4())[:8]
1405
+ backup_chat = await db._get_chatbot_chat_from_db(message.from_user.id)
1406
  backup_chat.append({"role": "user", "parts": [{"text": prompt}]})
1407
  results = await search_auto_by_cohere(message.from_user.id, query_base)
1408
  if len(results) > 4096: