feat: llm default value

This commit is contained in:
Joel
2024-03-15 21:41:18 +08:00
parent a577db9ddd
commit 6b9cc927c0
8 changed files with 77 additions and 34 deletions

View File

@ -236,7 +236,7 @@ export const useWorkflowInit = () => {
workflowStore.setState({
nodesDefaultConfigs: nodesDefaultConfigsData.reduce((acc, block) => {
if (!acc[block.type])
acc[block.type] = { ...block.config, _isReady: true }
acc[block.type] = { ...block.config }
return acc
}, {} as Record<string, any>),
})