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)
This commit is contained in:
balibabu 2024-07-15 15:44:31 +08:00 committed by GitHub
parent ca9c9c4e1e
commit c2693d2f46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,10 @@ export const useInitializeOperatorParams = () => {
llm_id: llmId, llm_id: llmId,
}, },
[Operator.Message]: initialMessageValues, [Operator.Message]: initialMessageValues,
[Operator.KeywordExtract]: initialKeywordExtractValues, [Operator.KeywordExtract]: {
...initialKeywordExtractValues,
llm_id: llmId,
},
[Operator.DuckDuckGo]: initialDuckValues, [Operator.DuckDuckGo]: initialDuckValues,
[Operator.Baidu]: initialBaiduValues, [Operator.Baidu]: initialBaiduValues,
}; };