mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
node style
This commit is contained in:
@ -15,8 +15,12 @@ const Node: FC<NodeProps<LLMNodeType>> = ({
|
||||
textGenerationModelList,
|
||||
} = useTextGenerationCurrentProviderAndModelAndModelList()
|
||||
const hasSetModel = provider && modelId
|
||||
|
||||
if (!hasSetModel)
|
||||
return null
|
||||
|
||||
return (
|
||||
<div className='px-3'>
|
||||
<div className='mb-1 px-3 py-1'>
|
||||
{hasSetModel && (
|
||||
<ModelSelector
|
||||
defaultModel={{ provider, model: modelId }}
|
||||
|
||||
Reference in New Issue
Block a user