临时优先用azure

This commit is contained in:
Chill
2023-04-17 17:39:36 +08:00
parent 6ddf90a75e
commit 3072c7399b

View File

@@ -116,7 +116,9 @@ class Channel(models.Model):
user_id = partners.mapped('user_ids')[:1]
elif not message.author_id.gpt_id:
# 没有@时默认第一个robot
robot = self.env.ref('app_chatgpt.chatgpt_robot')
# robot = self.env.ref('app_chatgpt.chatgpt_robot')
# 临时用azure
robot = self.env.ref('app_chatgpt.chatgpt3_azure')
if robot:
user_id = self.env['res.users'].search([('gpt_id', '=', robot.id)], limit=1)
else: