lh 2 ماه پیش
والد
کامیت
c4428f6ce4
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      app/Services/Anime/AnimeService.php

+ 9 - 0
app/Services/Anime/AnimeService.php

@@ -751,6 +751,9 @@ class AnimeService
                 'width' => $width,
                 'height' => $height
             ];
+
+            // 优化提示词(不要生成字幕)
+            $params['prompt'] = "前置要求:图片中不要带有任何对话台词或字幕信息\n".$params['prompt'];
             
             $task = $this->aiImageGenerationService->createImageGenerationTask($params);
             $task_id = $task->id;
@@ -1251,6 +1254,9 @@ class AnimeService
                     'width' => $width,
                     'height' => $height,
                 ];
+
+                // 优化提示词(不要生成字幕)
+                $params['prompt'] = "前置要求:图片中不要带有任何对话台词或字幕信息\n".$params['prompt'];
                 
                 // $task_id = mt_rand(100000, 999999);
                 // 调用AI图片生成服务
@@ -1512,6 +1518,9 @@ class AnimeService
                 'width' => $width,
                 'height' => $height,
             ];
+
+            // 优化提示词(不要生成字幕)
+            $params['prompt'] = "前置要求:图片中不要带有任何对话台词或字幕信息\n".$params['prompt'];
             
             // 调用AI图片生成服务
             $task = $this->aiImageGenerationService->createImageGenerationTask($params);