| | |
| | | } |
| | | |
| | | @Override |
| | | public String getSystemSetLTAiPrompt() { |
| | | String prompt = "请将问题转换为中文,并给出一个最详细的答案。"; |
| | | DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | LlmStrategyContextEnum.LLM_LING_TONG_PROMPT.getCode(), |
| | | LlmStrategyContextEnum.LLM_LING_TONG_PROMPT.getCode() |
| | | ); |
| | | if (dataDictionaryCustom != null) { |
| | | prompt = dataDictionaryCustom.getValue(); |
| | | } |
| | | return prompt; |
| | | } |
| | | |
| | | @Override |
| | | public AiResponse start(List<AiMessage> aiMessageDtoList,Integer type,String productRoleId, String content, String question) { |
| | | if (!StringUtils.hasText(productRoleId)) { |
| | | log.warn("productRoleId 不能为空"); |