This commit is contained in:
JzoNg 2024-09-19 16:49:30 +08:00
parent 8bd9d8f6ba
commit 396a240e68
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
}
if (isVisionModel) {
const variableName = data.vision.configs?.variable_selector[1]
const variableName = data.vision.configs?.variable_selector?.[1] || t(`${i18nPrefix}.files`)!
forms.push(
{
label: t(`${i18nPrefix}.vision`)!,

View File

@ -83,7 +83,7 @@ const InputsPanel = ({ onRun }: Props) => {
return (
<>
<div className='px-4 pb-2'>
<div className='pt-3 px-4 pb-2'>
{
variables.map((variable, index) => (
<div