fix: code lint

This commit is contained in:
刘江波 2025-03-18 21:09:49 +08:00
parent 8b2cc54404
commit 6703a8e9be

View File

@ -279,13 +279,14 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
type='string' type='string'
description={t(`${i18nPrefix}.outputVars.output`)} description={t(`${i18nPrefix}.outputVars.output`)}
/> />
{model?.completion_params?.response_format === 'json_object' && {['json_object', 'JSON'].includes(model?.completion_params?.response_format)
&& (
<VarItem <VarItem
name='json' name="json"
type='object' type="object"
description={t(`${i18nPrefix}.outputVars.json`)} description={t(`${i18nPrefix}.outputVars.json`)}
/> />
} )}
</> </>
</OutputVars> </OutputVars>
{isShowSingleRun && ( {isShowSingleRun && (