|
|
|
@ -93,7 +93,7 @@ public class InteractiveServiceImpl implements IInteractiveService {
|
|
|
|
|
params.put("userid", userId); |
|
|
|
|
params.put("query",question); |
|
|
|
|
params.put("stationids",this.getStationPermissionsById(userId).stream().map(DeptStationDTO::getStationId).filter(StringUtil::isNotBlank).filter(Func::isNotEmpty).toArray()); |
|
|
|
|
params.put("projectids",this.getStationPermissionsById(userId).stream().map(DeptStationDTO::getDeptId).filter(Func::isNotEmpty).toArray()); |
|
|
|
|
params.put("projectids",this.getStationPermissionsById(userId).stream().map(DeptStationDTO::getDeptId).filter(Func::isNotEmpty).map(String::valueOf).toArray()); |
|
|
|
|
HttpResponse response = HttpRequest.post(fdpHost + bigModelInvokeUrl.getAssistantAsk()) |
|
|
|
|
.body(JSON.toJSONString(params)).execute(); |
|
|
|
|
logger.info("interactive:ask","问答传参为:" + JSON.toJSONString(params) + "结果为:" + response.body()); |
|
|
|
|