|
|
@ -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()); |
|
|
|