update doc

This commit is contained in:
Ivan Office
2023-08-18 05:30:39 +08:00
parent 42e937def9
commit db2fb13343

View File

@@ -263,11 +263,13 @@ class Channel(models.Model):
# 非4版本取0次。其它取3 次历史 # 非4版本取0次。其它取3 次历史
chat_count = 3 chat_count = 3
if '4' in ai.ai_model: if '4' in ai.ai_model:
chat_count = 1
if hasattr(self, 'chat_count'): if hasattr(self, 'chat_count'):
if self.chat_count > 0: if self.chat_count > 0:
chat_count = 1 chat_count = 1
else: else:
chat_count = chat_count chat_count = chat_count
if author_id != answer_id.id and self.channel_type == 'chat': if author_id != answer_id.id and self.channel_type == 'chat':
# 私聊 # 私聊
_logger.info(f'私聊:author_id:{author_id},partner_chatgpt.id:{answer_id.id}') _logger.info(f'私聊:author_id:{author_id},partner_chatgpt.id:{answer_id.id}')