chengjie hace 4 meses
padre
commit
36a20b4c19
Se han modificado 2 ficheros con 10 adiciones y 7 borrados
  1. 4 2
      src/api/yjbdc/aiController.js
  2. 6 5
      src/util/constant/index.js

+ 4 - 2
src/api/yjbdc/aiController.js

@@ -284,7 +284,7 @@ class TencentHunyuanAIProvider extends AIProvider {
284 284
         };
285 285
 
286 286
         try {
287
-             console.log(`腾讯云${this.version}`);
287
+             console.log(`腾讯云${this.model}`);
288 288
             const response = await axios.post(this.url, postJSON, { headers: this.headers });
289 289
             return response.data.choices[0].message.content;
290 290
         } catch (error) {
@@ -369,7 +369,9 @@ class AIProviderFactory {
369 369
             case 'doubao-seed-1-6-250615':
370 370
                 return new VolcesAIProvider(providerLower);
371 371
             case 'ali-qwen-plus':
372
-                return new AliyunAIProvider();
372
+                return new AliyunAIProvider("qwen-plus");
373
+            case 'ali-qwen-max':
374
+                return new AliyunAIProvider("qwen-max");
373 375
             case 'xf-yun-spark-x1':
374 376
                 return new XunFeiYunAIProvider();
375 377
             case 'tencent-hunyuan-turbos':

+ 6 - 5
src/util/constant/index.js

@@ -23,11 +23,12 @@ export default {
23 23
             {Name:"节日文化",CSS:"",English:"Cultural Stories",Content:"不同节日的习俗和传统,比如春节贴春联、中秋节吃月饼、端午划龙舟、清明节扫墓、重阳节登高望远、元宵节猜灯谜,让我们了解不同文化。"},
24 24
             {Name:"人生励志",CSS:"",English:"Inspirational",Content:"讲述一个人如何克服困难、努力奋斗,最终取得成功的故事,鼓励我们不要轻易放弃,比如《爱迪生发明电灯》。"}];        
25 25
         result.AIVersion=[
26
-            {Version:"1.0",Model:"doubao-1-5-pro-32k-250115",Content:"词句丰富,结构简明\n平均30秒生成",CSS:"Selected"},
27
-            {Version:"1.5",Model:"doubao-seed-1-6-250615",Content:"深度表达,更多要素\n平均60秒生成",CSS:""},
28
-            {Version:"x1",Model:"xf-yun-spark-x1",Content:"讯飞sparkX1\n平均60秒生成",CSS:""},
29
-            {Version:"qw3",Model:"ali-qwen-plus",Content:"通义千问plus\n平均30秒生成",CSS:""},
30
-            {Version:"hyt",Model:"tencent-hunyuan-turbos",Content:"腾讯混元turbos\n平均30秒生成",CSS:""}];
26
+            {Version:"1.0",BuildSecond:30,Model:"doubao-1-5-pro-32k-250115",Content:"词句丰富,结构简明\n平均30秒生成",CSS:"Selected"},
27
+            {Version:"1.5",BuildSecond:60,Model:"doubao-seed-1-6-250615",Content:"深度表达,更多要素\n平均60秒生成",CSS:""},
28
+            {Version:"x1",BuildSecond:60,Model:"xf-yun-spark-x1",Content:"讯飞sparkX1\n平均60秒生成",CSS:""},
29
+            {Version:"qwp",BuildSecond:30,Model:"ali-qwen-plus",Content:"通义千问plus\n平均30秒生成",CSS:""},
30
+            {Version:"qwm",BuildSecond:45,Model:"ali-qwen-plus",Content:"通义千问Max\n平均45秒生成",CSS:""},
31
+            {Version:"hyt",BuildSecond:30,Model:"tencent-hunyuan-turbos",Content:"腾讯混元turbos\n平均30秒生成",CSS:""}];
31 32
 
32 33
         return result;
33 34
     },