mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update doc
This commit is contained in:
@@ -263,11 +263,13 @@ class Channel(models.Model):
|
||||
# 非4版本,取0次。其它取3 次历史
|
||||
chat_count = 3
|
||||
if '4' in ai.ai_model:
|
||||
chat_count = 1
|
||||
if hasattr(self, 'chat_count'):
|
||||
if self.chat_count > 0:
|
||||
chat_count = 1
|
||||
else:
|
||||
chat_count = chat_count
|
||||
|
||||
if author_id != answer_id.id and self.channel_type == 'chat':
|
||||
# 私聊
|
||||
_logger.info(f'私聊:author_id:{author_id},partner_chatgpt.id:{answer_id.id}')
|
||||
|
||||
Reference in New Issue
Block a user