From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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