소스 검색

Update push_service: change history dialogue number

StrayWarrior 4 일 전
부모
커밋
d5f009faf3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pqai_agent/push_service.py

+ 1 - 1
pqai_agent/push_service.py

@@ -214,7 +214,7 @@ class PushTaskWorkerPool:
             message_to_user = push_agent.generate_message(
                 context=main_agent.get_prompt_context(None),
                 dialogue_history=self.agent_service.history_dialogue_db.get_dialogue_history_backward(
-                    staff_id, user_id, main_agent.last_interaction_time_ms, limit=100
+                    staff_id, user_id, main_agent.last_interaction_time_ms, limit=30
                 ),
                 query_prompt_template=query_prompt_template
             )