Browse Source

fix: 大模型模块名调整

zhongwei
haungxing 3 months ago
parent
commit
68c9df047a
  1. 8
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInvokeServiceImpl.java
  2. 2
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/whitelist/service/impl/WhitelistServiceImpl.java

8
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/interactive/service/impl/HznlmInvokeServiceImpl.java

@ -70,7 +70,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
@Override @Override
public void ask(QuestionDTO question) { public void ask(QuestionDTO question) {
Map<String, Object> params = Func.toMap(question); JSONObject params = JSONObject.parseObject(JSON.toJSONString(question));
params.put("q_id", UUID.randomUUID().toString()); params.put("q_id", UUID.randomUUID().toString());
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantAsk(), params); RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantAsk(), params);
sessionRedisManager.addSessionId(question.getChatId()); sessionRedisManager.addSessionId(question.getChatId());
@ -92,7 +92,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
@Override @Override
public void specialAsk(QuestionDTO question) { public void specialAsk(QuestionDTO question) {
Map<String, Object> params = Func.toMap(question); JSONObject params = JSONObject.parseObject(JSON.toJSONString(question));
params.put("q_id", UUID.randomUUID().toString()); params.put("q_id", UUID.randomUUID().toString());
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantSpecialAsk(), params); RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantSpecialAsk(), params);
sessionRedisManager.addSessionId(question.getChatId()); sessionRedisManager.addSessionId(question.getChatId());
@ -114,7 +114,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
@Override @Override
public void knowledgeAsk(QuestionDTO question) { public void knowledgeAsk(QuestionDTO question) {
Map<String, Object> params = Func.toMap(question); JSONObject params = JSONObject.parseObject(JSON.toJSONString(question));
params.put("q_id", UUID.randomUUID().toString()); params.put("q_id", UUID.randomUUID().toString());
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantKnowledgeAsk(), params); RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantKnowledgeAsk(), params);
sessionRedisManager.addSessionId(question.getChatId()); sessionRedisManager.addSessionId(question.getChatId());
@ -122,7 +122,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
@Override @Override
public void analyseAsk(QuestionDTO question) { public void analyseAsk(QuestionDTO question) {
Map<String, Object> params = Func.toMap(question); JSONObject params = JSONObject.parseObject(JSON.toJSONString(question));
params.put("q_id", UUID.randomUUID().toString()); params.put("q_id", UUID.randomUUID().toString());
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantAnalyseAsk(), params); RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantAnalyseAsk(), params);
sessionRedisManager.addSessionId(question.getChatId()); sessionRedisManager.addSessionId(question.getChatId());

2
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/whitelist/service/impl/WhitelistServiceImpl.java

@ -1,5 +1,6 @@
package com.hnac.gglm.bigmodel.whitelist.service.impl; package com.hnac.gglm.bigmodel.whitelist.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hnac.gglm.bigmodel.whitelist.service.WhitelistService; import com.hnac.gglm.bigmodel.whitelist.service.WhitelistService;
import com.hnac.gglm.bigmodel.maintenance.entity.WhitelistEntity; import com.hnac.gglm.bigmodel.maintenance.entity.WhitelistEntity;
import com.hnac.gglm.bigmodel.whitelist.mapper.WhitelistMapper; import com.hnac.gglm.bigmodel.whitelist.mapper.WhitelistMapper;
@ -13,6 +14,7 @@ import org.springframework.stereotype.Service;
*/ */
@Service @Service
@Slf4j @Slf4j
@DS("hznlm")
public class WhitelistServiceImpl extends BaseServiceImpl<WhitelistMapper, WhitelistEntity> implements WhitelistService { public class WhitelistServiceImpl extends BaseServiceImpl<WhitelistMapper, WhitelistEntity> implements WhitelistService {
} }
Loading…
Cancel
Save