Merge branch '17.0' of github.com:guohuadeng/app-odoo into 17.0

This commit is contained in:
Chill
2025-02-10 15:58:02 +08:00
65 changed files with 762 additions and 16 deletions

View File

@@ -312,11 +312,13 @@ class Channel(models.Model):
# if msg_len * 2 >= 8000:
# messages = [{"role": "user", "content": msg}]
self.get_ai_response(ai, messages, channel, user_id, message)
# if sync_config == 'sync':
# self.get_ai_response(ai, messages, channel, user_id, message)
# else:
# self.with_delay().get_ai_response(ai, messages, channel, user_id, message)
if sync_config == 'sync':
self.get_ai_response(ai, messages, channel, user_id, message)
else:
if hasattr(self, 'with_delay'):
self.with_delay().get_ai_response(ai, messages, channel, user_id, message)
else:
self.get_ai_response(ai, messages, channel, user_id, message)
except Exception as e:
raise UserError(_(e))