mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update chatgpt, deepseek, misc
This commit is contained in:
@@ -26,7 +26,8 @@ class AiRobot(models.Model):
|
||||
@api.onchange('provider')
|
||||
def _onchange_provider(self):
|
||||
if self.provider == 'deepseek':
|
||||
self.endpoint = 'https://api.deepseek.com'
|
||||
if self.ai_model == 'deepseek-chat':
|
||||
self.endpoint = 'https://api.deepseek.com'
|
||||
# 取头像
|
||||
module_path = modules.get_module_path('app_ai', display_warning=False)
|
||||
if module_path:
|
||||
|
||||
Reference in New Issue
Block a user