From b7f4a49a8ceb65800aee96327d9017a471ac1d5c Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Fri, 20 Sep 2024 20:13:05 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E4=BF=AE=E6=AD=A3=E6=89=80=E6=9C=89?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=91=BD=E4=BB=A4=E9=83=BD=E4=B8=BA=E5=9B=BE?= =?UTF-8?q?=E6=96=87=E8=AF=86=E5=88=AB=E7=B1=BB=E5=9E=8Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java | 2 +- .../hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java | 1 - .../interactive/service/impl/ControlAnswerResolveServiceImpl.java | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java index 4a8afcf..745a53d 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/database/service/WeaviateService.java @@ -219,7 +219,7 @@ public class WeaviateService { if(Func.isNotEmpty(className)) { objectsGetter.withClassName(className); } - Result> result = objectsGetter.withVector().withLimit(pageSize).withOffset((current-1) * pageSize).run(); + Result> result = objectsGetter.withLimit(pageSize).withOffset((current-1) * pageSize).run(); if(result.hasErrors()) { throw new HzServiceException("查询失败!"); } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java index 03130ab..bb7ac85 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/constants/FunctionConstants.java @@ -27,7 +27,6 @@ public interface FunctionConstants { CHART("6"), IMAGE_TEXT("7") ; - ; @Getter private String type; diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java index 7aa4182..8b2eb80 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/ControlAnswerResolveServiceImpl.java @@ -47,10 +47,12 @@ public class ControlAnswerResolveServiceImpl implements IAnswerResolveService { String body = HttpRequest.post(url).body(JSON.toJSONString(param)).execute().body(); params.put("data",body); log.info("识别结果为:{}", body); + ExtraVO result = originExtra.toJavaObject(ExtraVO.class); + result.setType(FunctionConstants.TypeEnum.IMAGE_TEXT.getType()); + return result; } } ExtraVO result = originExtra.toJavaObject(ExtraVO.class); - result.setType(FunctionConstants.TypeEnum.IMAGE_TEXT.getType()); return result; } }