feat: get input vars

This commit is contained in:
Joel
2024-04-01 10:38:12 +08:00
parent c20685e669
commit e03367a188
2 changed files with 26 additions and 1 deletions

View File

@ -11,7 +11,6 @@ import AddButton from '@/app/components/workflow/nodes/_base/components/add-butt
import TypeSelector from '@/app/components/workflow/nodes/_base/components/selector'
import TooltipPlus from '@/app/components/base/tooltip-plus'
import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general'
const i18nPrefix = 'workflow.nodes.llm'
type Props = {
@ -105,6 +104,8 @@ const ConfigPrompt: FC<Props> = ({
onChange(newPrompt)
}, [onChange, payload])
// console.log(getInputVars((payload as PromptItem).text))
return (
<div>
{(isChatModel && Array.isArray(payload))