From 1b75e2ab55ca5c0753e83a3f7e591b135a43fce5 Mon Sep 17 00:00:00 2001 From: xupei Date: Tue, 10 Jun 2025 18:08:16 +0800 Subject: [PATCH] =?UTF-8?q?TASK:=20prompt=E6=8F=90=E5=8F=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9C=B0=E5=9D=80=E5=88=87=E6=8D=A2?= 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 09aa9f09..a2eed0fe 100644 --- a/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java @@ -1948,10 +1948,10 @@ public class GenerateServiceImpl extends ServiceImpl i requestBody.set("stream", false);*/ // log.info("request body:{}", requestBody); -// String resp = sendRequestUtil.sendPost("http://18.167.251.121:9994/api/img2prompt", imagePath); JSONObject requestBody = new JSONObject(); requestBody.set("img", imagePath); - String description = sendRequestUtil.sendPost("http://localhost:8000/api/img2prompt", requestBody.toString()); +// String description = sendRequestUtil.sendPost("http://localhost:8000/api/img2prompt", requestBody.toString()); + String description = sendRequestUtil.sendPost("http://18.167.251.121:9994/api/img2prompt", imagePath); if (StringUtil.isNullOrEmpty(description)){ throw new BusinessException("从ollama获取图片描述失败"); }