| | |
| | | return appId; |
| | | } |
| | | |
| | | private String getAppIdV2(List<LlmStrategyDto> dto) { |
| | | String appId = null; |
| | | for (LlmStrategyDto dtoItem : dto){ |
| | | if (StrUtil.equals(dtoItem.getRole(),Role.TOOL.getValue())){ |
| | | appId = dtoItem.getContent(); |
| | | break; |
| | | } |
| | | } |
| | | return appId; |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse llmInvokeNonStreaming(List<LlmStrategyDto> dto) { |
| | | return null; |
| | |
| | | } |
| | | HashMap prompt = getPrompt(dto); |
| | | String query = getQuery(dto); |
| | | String appId = getAppId(dto); |
| | | // String appId = getAppId(dto); |
| | | String appId = getAppIdV2(dto); |
| | | if (prompt == null || prompt.size() == 0){ |
| | | throw new FebsException("百炼工作流初始化异常"); |
| | | } |