From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx b/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx index 8f8555e..57c8f83 100644 --- a/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx +++ b/app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx @@ -14,7 +14,6 @@ import { useEventEmitterContextContext } from '@/context/event-emitter' import { useProviderContext } from '@/context/provider-context' import { useFeatures } from '@/app/components/base/features/hooks' -import { noop } from 'lodash-es' type TextGenerationItemProps = { modelAndParameter: ModelAndParameter @@ -125,9 +124,18 @@ doSend(v.payload.message, v.payload.files) }) + const varList = modelConfig.configs.prompt_variables.map((item: any) => { + return { + label: item.key, + value: inputs[item.key], + } + }) + return ( <TextGeneration - className='flex h-full flex-col overflow-y-auto border-none' + className='flex flex-col h-full overflow-y-auto border-none' + innerClassName='grow flex flex-col' + contentClassName='grow' content={completion} isLoading={!completion && isResponding} isResponding={isResponding} @@ -135,8 +143,9 @@ siteInfo={null} messageId={messageId} isError={false} - onRetry={noop} - inSidePanel + onRetry={() => { }} + appId={appId} + varList={varList} /> ) } -- Gitblit v1.8.0