|
@@ -217,7 +217,7 @@ class AgentService:
|
|
|
)
|
|
|
response = chat_completion.choices[0].message.content
|
|
|
elif self.chat_service_type == ChatServiceType.COZE_CHAT:
|
|
|
- bot_user_id = 'dev_user'
|
|
|
+ bot_user_id = 'qywx_{}'.format(chat_config['user_id'])
|
|
|
response = self.coze_client.create(
|
|
|
chat_config['bot_id'], bot_user_id, chat_config['messages'],
|
|
|
chat_config['custom_variables']
|
|
@@ -309,7 +309,7 @@ if __name__ == "__main__":
|
|
|
if not text:
|
|
|
continue
|
|
|
message_id += 1
|
|
|
- sender = '7881300148979455'
|
|
|
+ sender = '7881300197937884'
|
|
|
receiver = '1688855931724582'
|
|
|
if text == MessageType.AGGREGATION_TRIGGER.name:
|
|
|
message = Message.build(MessageType.AGGREGATION_TRIGGER, MessageChannel.CORP_WECHAT,
|