浏览代码

merge master

luojunhui 5 天之前
父节点
当前提交
90536ccab3
共有 3 个文件被更改,包括 3 次插入4 次删除
  1. 1 1
      generate_data_set.py
  2. 0 1
      log.txt
  3. 2 2
      pqai_agent/agents/message_push_agent.py

+ 1 - 1
generate_data_set.py

@@ -228,8 +228,8 @@ def generate_push_dataset():
     samples =random.sample(filter_conversation, 100)
 
     # init message push agent
-    agent = MessagePushAgent()
     for sample in tqdm(samples):
+        agent = MessagePushAgent()
         agent_profile = get_profile_info(sample["staff_id"], "staff")[0]['profile']
         agent_profile = json.loads(agent_profile)
         user_profile = get_profile_info(sample["user_id"], "user")[0]['profile']

文件差异内容过多而无法显示
+ 0 - 1
log.txt


+ 2 - 2
pqai_agent/agents/message_push_agent.py

@@ -141,8 +141,8 @@ class MessagePushAgent(SimpleOpenAICompatibleChatAgent):
         self.run(query)
         for tool_call in reversed(self.tool_call_records):
             if tool_call['name'] == MessageNotifier.message_notify_user.__name__:
-                time.sleep(1)
-                print(tool_call['arguments']['message'])
+                # time.sleep(1)
+                print("Function call return", tool_call['arguments']['message'])
                 return tool_call['arguments']['message']
         return ''
 

部分文件因为文件数量过多而无法显示