chengjie 4 months ago
parent
commit
bbd32c9fc7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/api/yjbdc/yjbdcController.js

+ 5 - 2
src/api/yjbdc/yjbdcController.js

@@ -18,7 +18,7 @@ const ONE_DAY_MAX_BUILD_COUNT=12;//一天最大生成数
18
 
18
 
19
 const OcrClient = tencentcloud.ocr.v20181119.Client;
19
 const OcrClient = tencentcloud.ocr.v20181119.Client;
20
 // AI平台配置
20
 // AI平台配置
21
-const DEFAULT_AI_PROVIDER = 'volces1-6'; // 默认使用火山云AI
21
+const DEFAULT_AI_PROVIDER = 'volces1-5'; // 默认使用火山云AI
22
 
22
 
23
 
23
 
24
 export async function YJBDCLogin(ctx) {
24
 export async function YJBDCLogin(ctx) {
@@ -262,7 +262,10 @@ export async function GenerateArticle(ctx) {
262
         //console.log("content:"+content);
262
         //console.log("content:"+content);
263
         
263
         
264
         // 从请求参数中获取AI提供者,如果没有指定则使用默认值
264
         // 从请求参数中获取AI提供者,如果没有指定则使用默认值
265
-        const aiProvider = params.aiProvider || DEFAULT_AI_PROVIDER;
265
+        let aiProvider = DEFAULT_AI_PROVIDER;
266
+        if (params.Level>=2){
267
+            aiProvider="volces1-6";
268
+        }
266
         
269
         
267
         try {
270
         try {
268
             // 使用aiController生成文章
271
             // 使用aiController生成文章