From c9f9ef0ce2f79c940148f57a1b6c84fff0e5d1a2 Mon Sep 17 00:00:00 2001 From: litianxiang Date: Wed, 15 Oct 2025 10:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=B7=E6=AD=8C=E6=A8=A1=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA=E8=AF=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java b/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java index 7a6dccbf..b4b33323 100644 --- a/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java @@ -847,7 +847,7 @@ public class GenerateServiceImpl extends ServiceImpl i } } else if (finishReason != null && finishReason.equals("IMAGE_SAFETY")) { String finishMessage = candidate.getString("finishMessage"); - if (finishMessage != null && finishMessage.contains("Try rephrasing the prompt or ")) { + if (finishMessage != null && finishMessage.contains("Try rephrasing the prompt")) { finishMessage = "Try rephrasing the prompt or modifying the model image. If you think this was an error, send feedback."; LambdaQueryWrapper select = new LambdaQueryWrapper().eq(Account::getId, userId).select(Account::getLanguage); Account account = accountService.getOne(select); @@ -1112,7 +1112,7 @@ public class GenerateServiceImpl extends ServiceImpl i } } else if (finishReason != null && finishReason.equals("IMAGE_SAFETY")) { String finishMessage = candidate.getString("finishMessage"); - if (finishMessage != null && finishMessage.contains("Try rephrasing the prompt or ")) { + if (finishMessage != null && finishMessage.contains("Try rephrasing the prompt")) { finishMessage = "Try rephrasing the prompt or replacing the image. If you think this was an error, send feedback."; LambdaQueryWrapper select = new LambdaQueryWrapper().eq(Account::getId, userId).select(Account::getLanguage); Account account = accountService.getOne(select);