+
-
{title}
+
+
{title}
+ {tooltip && (
+
+
+
+ )}
+
+
{operations &&
{operations}
}
{children}
diff --git a/web/app/components/workflow/nodes/_base/components/split.tsx b/web/app/components/workflow/nodes/_base/components/split.tsx
new file mode 100644
index 0000000000..d5b3b0079a
--- /dev/null
+++ b/web/app/components/workflow/nodes/_base/components/split.tsx
@@ -0,0 +1,18 @@
+'use client'
+import type { FC } from 'react'
+import React from 'react'
+import cn from 'classnames'
+
+type Props = {
+ className?: string
+}
+
+const Split: FC
= ({
+ className,
+}) => {
+ return (
+
+
+ )
+}
+export default React.memo(Split)
diff --git a/web/app/components/workflow/nodes/llm/panel.tsx b/web/app/components/workflow/nodes/llm/panel.tsx
index 7efbd99308..7d786fd0a2 100644
--- a/web/app/components/workflow/nodes/llm/panel.tsx
+++ b/web/app/components/workflow/nodes/llm/panel.tsx
@@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next'
import BasePanel from '../_base/panel'
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'
const i18nPrefix = 'workflow.nodes.llm'
const Panel: FC = () => {
@@ -12,21 +13,49 @@ const Panel: FC = () => {
}
return (
-
- Model Selector
-
-
- }
- >
- Var Selector
-
- }
+ inputsElement={
+
+
+ Model Selector
+
+
+
+ }
+ >
+ Var Selector
+
+
+
+ Context
+
+
+ Prompt
+
+
+
+ Vision
+
+ {/* This version not support function */}
+ {/*
+ Functions
+ */}
+
+ }
outputsElement={
start panel outputs
}
/>
)
diff --git a/web/i18n/lang/workflow.en.ts b/web/i18n/lang/workflow.en.ts
index 78e2ece8cf..0d970065c6 100644
--- a/web/i18n/lang/workflow.en.ts
+++ b/web/i18n/lang/workflow.en.ts
@@ -3,6 +3,9 @@ const translation = {
llm: {
model: 'model',
variables: 'variables',
+ context: 'context',
+ prompt: 'prompt',
+ vision: 'vision',
},
},
}
diff --git a/web/i18n/lang/workflow.zh.ts b/web/i18n/lang/workflow.zh.ts
index b60c2a2241..e2a9466687 100644
--- a/web/i18n/lang/workflow.zh.ts
+++ b/web/i18n/lang/workflow.zh.ts
@@ -3,6 +3,9 @@ const translation = {
llm: {
model: '模型',
variables: '变量',
+ context: '上下文',
+ prompt: '提示词',
+ vision: '视觉',
},
},
}