|
|
@@ -403,6 +403,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
if (StringUtils.isEmpty(category)) { |
|
|
|
category = "airport"; |
|
|
|
} |
|
|
|
String llmRoute = category; |
|
|
|
JSONObject joResult = new JSONObject(); |
|
|
|
joResult.put("msg",""); |
|
|
|
joResult.put("target",0); |
|
|
@@ -410,14 +411,14 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
vo.setCategory(category); |
|
|
|
vo.addDmLlm("user", intent.getContent()); |
|
|
|
JSONObject testJ = new JSONObject(); |
|
|
|
testJ.put("category","airport"); |
|
|
|
testJ.put("category",category); |
|
|
|
JSONArray ja1 = new JSONArray(); |
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
jo.put("role","user"); |
|
|
|
jo.put("content",intent.getContent()); |
|
|
|
ja1.add(jo); |
|
|
|
testJ.put("messages",ja1); |
|
|
|
JSONObject resultJson = remoteLandingLlmService.query(category,testJ); |
|
|
|
JSONObject resultJson = remoteLandingLlmService.query(llmRoute,testJ); |
|
|
|
log.info("北方大返回:{}",resultJson.toString()); |
|
|
|
if (resultJson.get("status").equals("success")) { |
|
|
|
JSONArray ja = resultJson.getJSONArray("data"); |
|
|
@@ -510,6 +511,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
testJ.put("messages",ja1); |
|
|
|
String gatewayheader = LagiConfig.tenantLlmMap.get(enterpriseDtoR.getData().getName()); |
|
|
|
gatewayheader = StringUtils.isEmpty(gatewayheader) ? "": gatewayheader; |
|
|
|
log.info("北方大请求:{}",gatewayheader); |
|
|
|
JSONObject resultJson = remoteLandingLlmService.query(gatewayheader,testJ); |
|
|
|
log.info("北方大返回:{}",resultJson.toString()); |
|
|
|
if (resultJson.get("status").equals("success")) { |
|
|
|