From 3072c7399baea4b0d8362b002e96fb1e2015fb48 Mon Sep 17 00:00:00 2001 From: Chill Date: Mon, 17 Apr 2023 17:39:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BC=98=E5=85=88=E7=94=A8az?= =?UTF-8?q?ure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_chatgpt/models/mail_channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app_chatgpt/models/mail_channel.py b/app_chatgpt/models/mail_channel.py index e870f423..886383c9 100644 --- a/app_chatgpt/models/mail_channel.py +++ b/app_chatgpt/models/mail_channel.py @@ -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: