node style

This commit is contained in:
StyleZhang
2024-03-21 15:57:55 +08:00
parent fb2e351c08
commit 524b19bb3a
11 changed files with 37 additions and 16 deletions

View File

@ -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 }}