Forráskód Böngészése

Revert "develop-0520"

This reverts commit 7b327448
luojunhui 1 hónapja
szülő
commit
8370374792
1 módosított fájl, 7 hozzáadás és 7 törlés
  1. 7 7
      pqai_agent_server/api_server.py

+ 7 - 7
pqai_agent_server/api_server.py

@@ -86,27 +86,27 @@ def list_models():
         {
             'model_type': 'openai_compatible',
             'model_name': chat_service.VOLCENGINE_MODEL_DEEPSEEK_V3,
-            'display_name': 'DeepSeek V3 on 火山',
+            'display_name': 'DeepSeek V3 on 火山'
         },
         {
             'model_type': 'openai_compatible',
             'model_name': chat_service.VOLCENGINE_MODEL_DOUBAO_PRO_32K,
-            'display_name': '豆包Pro 32K',
+            'display_name': '豆包Pro 32K'
         },
         {
             'model_type': 'openai_compatible',
             'model_name': chat_service.VOLCENGINE_MODEL_DOUBAO_PRO_1_5,
-            'display_name': '豆包Pro 1.5',
+            'display_name': '豆包Pro 1.5'
         },
         {
             'model_type': 'openai_compatible',
             'model_name': chat_service.VOLCENGINE_BOT_DEEPSEEK_V3_SEARCH,
-            'display_name': 'DeepSeek V3联网 on 火山',
+            'display_name': 'DeepSeek V3联网 on 火山'
         },
         {
             'model_type': 'openai_compatible',
             'model_name': chat_service.VOLCENGINE_MODEL_DOUBAO_1_5_VISION_PRO,
-            'display_name': '豆包1.5视觉理解Pro',
+            'display_name': '豆包1.5视觉理解Pro'
         },
     ]
     return wrap_response(200, data=models)
@@ -139,7 +139,7 @@ def get_base_prompt():
         'chitchat': chat_service.VOLCENGINE_MODEL_DOUBAO_PRO_32K,
         'profile_extractor': chat_service.VOLCENGINE_MODEL_DOUBAO_PRO_1_5,
         'response_type_detector': chat_service.VOLCENGINE_MODEL_DOUBAO_PRO_1_5,
-        'custom_debugging': chat_service.VOLCENGINE_BOT_DEEPSEEK_V3_SEARCH,
+        'custom_debugging': chat_service.VOLCENGINE_BOT_DEEPSEEK_V3_SEARCH
     }
     if scene not in prompt_map:
         return wrap_response(404, msg='scene not found')
@@ -271,7 +271,7 @@ if __name__ == '__main__':
 
     wecom_db_config = config['storage']['user_relation']
     user_relation_manager = MySQLUserRelationManager(
-        user_db_config['mysql'],wecom_db_config['mysql'],
+        user_db_config['mysql'], wecom_db_config['mysql'],
         config['storage']['staff']['table'],
         user_db_config['table'],
         wecom_db_config['table']['staff'],