Ver código fonte

Fix history_dialogue_service

StrayWarrior 1 mês atrás
pai
commit
25de88ef31
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      pqai_agent/history_dialogue_service.py

+ 0 - 1
pqai_agent/history_dialogue_service.py

@@ -15,7 +15,6 @@ class HistoryDialogueService:
         self.base_url = base_url
 
     def get_dialogue_history(self, staff_id: str, user_id: str, recent_minutes: int = 1440):
-        recent_minutes = min(recent_minutes, 24 * 60)
         time_begin = int(time.time() * 1000) - recent_minutes * 60 * 1000
         url = f"{self.base_url}?sender={staff_id}&receiver={user_id}&time={time_begin}"
         response = requests.post(url, headers={