update chatgpt, deepseek, misc

This commit is contained in:
Ivan Office
2025-02-10 17:07:57 +08:00
parent b2f9348d87
commit b679f1b4ae
28 changed files with 459 additions and 277 deletions

View File

@@ -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: