BUGFIX: prompt提取接口传参格式修改

This commit is contained in:
2025-06-10 18:13:53 +08:00
parent 1b75e2ab55
commit ac2d1e611b

View File

@@ -1951,7 +1951,7 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> 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获取图片描述失败");
}