balibabu commited on
Commit
85f1528
·
1 Parent(s): 68707f1

fix: fixed the issue that the llm field in the KeywordExtract form had no default value (#1510)

Browse files

### 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)

Files changed (1) hide show
  1. web/src/pages/flow/hooks.ts +4 -1
web/src/pages/flow/hooks.ts CHANGED
@@ -82,7 +82,10 @@ export const useInitializeOperatorParams = () => {
82
  llm_id: llmId,
83
  },
84
  [Operator.Message]: initialMessageValues,
85
- [Operator.KeywordExtract]: initialKeywordExtractValues,
 
 
 
86
  [Operator.DuckDuckGo]: initialDuckValues,
87
  [Operator.Baidu]: initialBaiduValues,
88
  };
 
82
  llm_id: llmId,
83
  },
84
  [Operator.Message]: initialMessageValues,
85
+ [Operator.KeywordExtract]: {
86
+ ...initialKeywordExtractValues,
87
+ llm_id: llmId,
88
+ },
89
  [Operator.DuckDuckGo]: initialDuckValues,
90
  [Operator.Baidu]: initialBaiduValues,
91
  };