From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- utils/model-config.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/utils/model-config.ts b/utils/model-config.ts index 74d8848..a00bcfb 100644 --- a/utils/model-config.ts +++ b/utils/model-config.ts @@ -109,7 +109,10 @@ export const promptVariablesToUserInputsForm = (promptVariables: PromptVariable[]) => { const userInputs: UserInputFormItem[] = [] promptVariables.filter(({ key, name }) => { - return key && key.trim() && name && name.trim() + if (key && key.trim() && name && name.trim()) + return true + + return false }).forEach((item: any) => { if (item.type === 'string' || item.type === 'paragraph') { userInputs.push({ -- Gitblit v1.8.0