From 6703a8e9be9638b4d4ef4dc4822c701fbe01ab9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B1=9F=E6=B3=A2?= Date: Tue, 18 Mar 2025 21:09:49 +0800 Subject: [PATCH] fix: code lint --- web/app/components/workflow/nodes/llm/panel.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/app/components/workflow/nodes/llm/panel.tsx b/web/app/components/workflow/nodes/llm/panel.tsx index 5d764ea9c6..4a82d24985 100644 --- a/web/app/components/workflow/nodes/llm/panel.tsx +++ b/web/app/components/workflow/nodes/llm/panel.tsx @@ -279,13 +279,14 @@ const Panel: FC> = ({ type='string' description={t(`${i18nPrefix}.outputVars.output`)} /> - {model?.completion_params?.response_format === 'json_object' && + {['json_object', 'JSON'].includes(model?.completion_params?.response_format) + && ( - } + )} {isShowSingleRun && (