|
|
|
@ -70,7 +70,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
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()); |
|
|
|
|
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantAsk(), params); |
|
|
|
|
sessionRedisManager.addSessionId(question.getChatId()); |
|
|
|
@ -92,7 +92,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
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()); |
|
|
|
|
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantSpecialAsk(), params); |
|
|
|
|
sessionRedisManager.addSessionId(question.getChatId()); |
|
|
|
@ -114,7 +114,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
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()); |
|
|
|
|
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantKnowledgeAsk(), params); |
|
|
|
|
sessionRedisManager.addSessionId(question.getChatId()); |
|
|
|
@ -122,7 +122,7 @@ public class HznlmInvokeServiceImpl implements IHznlmInvokeService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
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()); |
|
|
|
|
RequestClientUtil.postCall(gglmUrl + bigModelInvokeApi.getAssistantAnalyseAsk(), params); |
|
|
|
|
sessionRedisManager.addSessionId(question.getChatId()); |
|
|
|
|