mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
临时优先用azure
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user