chore: llm remove var inputs

This commit is contained in:
Joel 2024-03-28 16:54:14 +08:00
parent 4934a655dd
commit 82a82fff35
2 changed files with 1 additions and 18 deletions

View File

@ -48,7 +48,7 @@ const ConfigPrompt: FC<Props> = ({
onlyLeafNodeVar: false,
filterVar,
})
console.log('availableVarList', availableVarList)
// console.log('availableVarList', availableVarList)
const handleChatModePromptChange = useCallback((index: number) => {
return (prompt: string) => {

View File

@ -7,9 +7,7 @@ import useConfig from './use-config'
import ResolutionPicker from './components/resolution-picker'
import type { LLMNodeType } from './types'
import ConfigPrompt from './components/config-prompt'
import VarList from '@/app/components/workflow/nodes/_base/components/variable/var-list'
import Field from '@/app/components/workflow/nodes/_base/components/field'
import AddButton from '@/app/components/base/button/add-button'
import Split from '@/app/components/workflow/nodes/_base/components/split'
import ModelParameterModal from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal'
import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars'
@ -136,21 +134,6 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
/>
</Field>
<Field
title={t(`${i18nPrefix}.variables`)}
operations={
!readOnly ? <AddButton onClick={handleAddVariable} /> : undefined
}
>
<VarList
readonly={readOnly}
nodeId={id}
list={inputs.variables}
onChange={handleVarListChange}
filterVar={filterInputVar}
/>
</Field>
{/* knowledge */}
<Field
title={t(`${i18nPrefix}.context`)}