From ac2d1e611bebf1e64531647476989a91bcde17a5 Mon Sep 17 00:00:00 2001 From: xupei Date: Tue, 10 Jun 2025 18:13:53 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX:=20prompt=E6=8F=90=E5=8F=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BC=A0=E5=8F=82=E6=A0=BC=E5=BC=8F=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a2eed0fe..283a6082 100644 --- a/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java @@ -1951,7 +1951,7 @@ public class GenerateServiceImpl extends ServiceImpl i JSONObject requestBody = new JSONObject(); requestBody.set("img", imagePath); // String description = sendRequestUtil.sendPost("http://localhost:8000/api/img2prompt", requestBody.toString()); - String description = sendRequestUtil.sendPost("http://18.167.251.121:9994/api/img2prompt", imagePath); + String description = sendRequestUtil.sendPost("http://18.167.251.121:9994/api/img2prompt", requestBody.toString()); if (StringUtil.isNullOrEmpty(description)){ throw new BusinessException("从ollama获取图片描述失败"); }