app_chatgpt优化

This commit is contained in:
Chill
2023-04-13 11:48:02 +08:00
parent 753fea8ebb
commit 6e7383cfae
4 changed files with 11 additions and 16 deletions

View File

@@ -89,7 +89,7 @@ class Channel(models.Model):
ai = user_id.gpt_id
chatgpt_channel_id = self.env.ref('app_chatgpt.channel_chatgpt')
msg = message.description.replace('@%s' % answer_id.name, '').lstrip()
msg = message.preview.replace('@%s' % answer_id.name, '').lstrip()
# print('prompt:', prompt)
# print('-----')