This commit is contained in:
Joel
2024-03-05 12:35:31 +08:00
parent 90c8d9d27b
commit 57e9e229de
8 changed files with 41 additions and 13 deletions

View File

@ -9,7 +9,7 @@ import type { NodeProps } from '@/app/components/workflow/types'
const Node: FC<NodeProps<LLMNodeType>> = ({
data,
}) => {
const { provider, name: modelId } = data.model
const { provider, name: modelId } = data.model || {}
const {
textGenerationModelList,
} = useTextGenerationCurrentProviderAndModelAndModelList()