update lic

This commit is contained in:
Ivan Office
2025-02-07 19:12:54 +08:00
parent 63395b33fc
commit c5d7fdfcc4
5 changed files with 11 additions and 12 deletions

View File

@@ -10,7 +10,7 @@
{
'name': 'ChatGPT4, China Ali,AiGC Center.Ai服务中心聚合全网Ai',
'version': '18.0.25.01.08',
'version': '18.0.25.02.07',
'author': 'odooai.cn',
'company': 'odooai.cn',
'maintainer': 'odooai.cn',
@@ -48,11 +48,8 @@
pip3 install typing-extensions==4.12.2
''',
'depends': [
'base',
'app_odoo_customize',
'base_setup',
'mail',
# 'queue_job',
],
'data': [
'security/ir.model.access.csv',

View File

@@ -314,11 +314,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)