This commit is contained in:
Luke.Ye 2025-07-12 02:03:07 +08:00
parent fec5ce0ca2
commit 2e7ab01ed6

View File

@ -90,7 +90,7 @@ public class LLMAppServiceImpl implements LLMAppService {
if(StrUtil.isBlank((String)params.get(ConstantConfig.LLM_SLUG_KEY))) { if(StrUtil.isBlank((String)params.get(ConstantConfig.LLM_SLUG_KEY))) {
params.put(ConstantConfig.LLM_SLUG_KEY, usedSlug); params.put(ConstantConfig.LLM_SLUG_KEY, usedSlug);
} }
llmServiceFactory.current().streamAnswer(llmToken, question, params, adapter); llmServiceFactory.current().streamAnswer(llmToken, question.replaceAll(ConstantConfig.KEYWORD_PATTERN_LEFT, StrUtil.EMPTY), params, adapter);
emitter.complete(); emitter.complete();
} catch (Exception e) { } catch (Exception e) {