From 8e2d342de6f01ce41137739f1bdff5b12b2179cd Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Fri, 30 May 2025 10:51:19 +0800 Subject: [PATCH] Feat/15534 support replacing the bot in chat input placeholder with the bots name (#20473) --- .../debug/debug-with-multiple-model/index.tsx | 11 ++++++++++- .../base/chat/chat/chat-input-area/index.tsx | 4 +++- web/app/components/base/chat/chat/index.tsx | 1 + web/i18n/de-DE/common.ts | 2 +- web/i18n/en-US/common.ts | 2 +- web/i18n/es-ES/common.ts | 2 +- web/i18n/fr-FR/common.ts | 2 +- web/i18n/it-IT/common.ts | 2 +- web/i18n/ja-JP/common.ts | 2 +- web/i18n/pl-PL/common.ts | 2 +- web/i18n/pt-BR/common.ts | 2 +- web/i18n/ro-RO/common.ts | 2 +- web/i18n/tr-TR/common.ts | 2 +- web/i18n/vi-VN/common.ts | 2 +- web/i18n/zh-Hans/common.ts | 2 +- web/i18n/zh-Hant/common.ts | 2 +- web/models/debug.ts | 1 + 17 files changed, 28 insertions(+), 15 deletions(-) diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx index 75ba8362ae..b876adfa3d 100644 --- a/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx +++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx @@ -99,7 +99,15 @@ const DebugWithMultipleModel = () => { }, [twoLine, threeLine, fourLine]) const setShowAppConfigureFeaturesModal = useAppStore(s => s.setShowAppConfigureFeaturesModal) - const inputsForm = modelConfig.configs.prompt_variables.filter(item => item.type !== 'api').map(item => ({ ...item, label: item.name, variable: item.key })) as InputForm[] + const inputsForm = modelConfig.configs.prompt_variables + .filter(item => item.type !== 'api') + .map(item => ({ + ...item, + label: item.name, + variable: item.key, + hide: item.hide ?? false, + required: item.required ?? false, + })) as InputForm[] return (
@@ -133,6 +141,7 @@ const DebugWithMultipleModel = () => { {isChatMode && (
= ({ { !noChatInput && ( icon?: string icon_background?: string + hide?: boolean // used in frontend to hide variable } export type CompletionParams = {