Browse Source

Update push_service: change history dialogue number

StrayWarrior 3 days ago
parent
commit
d5f009faf3
1 changed files with 1 additions and 1 deletions
  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
             )