From c2693d2f4635570085dffb842b2275e27a0a631c Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 15 Jul 2024 15:44:31 +0800 Subject: [PATCH] fix: fixed the issue that the llm field in the KeywordExtract form had no default value (#1510) ### What problem does this PR solve? fix: fixed the issue that the llm field in the KeywordExtract form had no default value ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/flow/hooks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/pages/flow/hooks.ts b/web/src/pages/flow/hooks.ts index 32754e444..c3ea0fb91 100644 --- a/web/src/pages/flow/hooks.ts +++ b/web/src/pages/flow/hooks.ts @@ -82,7 +82,10 @@ export const useInitializeOperatorParams = () => { llm_id: llmId, }, [Operator.Message]: initialMessageValues, - [Operator.KeywordExtract]: initialKeywordExtractValues, + [Operator.KeywordExtract]: { + ...initialKeywordExtractValues, + llm_id: llmId, + }, [Operator.DuckDuckGo]: initialDuckValues, [Operator.Baidu]: initialBaiduValues, };