add mode config, fix app params

This commit is contained in:
duanfuxiang
2025-04-28 23:12:59 +08:00
parent f282c9f667
commit 7791baabaa
4 changed files with 9 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
const { streamResponse, chatModel } = useLLM()
const promptGenerator = useMemo(() => {
// @ts-expect-error
return new PromptGenerator(getRAGEngine, app, settings, diffStrategy, customModePrompts, customModeList)
}, [getRAGEngine, app, settings, diffStrategy, customModePrompts, customModeList])