Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
c0ccffa1
Commit
c0ccffa1
authored
Mar 11, 2024
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: no var not show var group
parent
2aa8847b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
panel.tsx
web/app/components/workflow/nodes/llm/panel.tsx
+13
-8
No files found.
web/app/components/workflow/nodes/llm/panel.tsx
View file @
c0ccffa1
...
@@ -16,6 +16,7 @@ import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/compo
...
@@ -16,6 +16,7 @@ import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/compo
import
{
Resolution
}
from
'@/types/app'
import
{
Resolution
}
from
'@/types/app'
import
{
InputVarType
,
type
NodePanelProps
}
from
'@/app/components/workflow/types'
import
{
InputVarType
,
type
NodePanelProps
}
from
'@/app/components/workflow/types'
import
BeforeRunForm
from
'@/app/components/workflow/nodes/_base/components/before-run-form'
import
BeforeRunForm
from
'@/app/components/workflow/nodes/_base/components/before-run-form'
import
type
{
Props
as
FormProps
}
from
'@/app/components/workflow/nodes/_base/components/before-run-form/form'
const
i18nPrefix
=
'workflow.nodes.llm'
const
i18nPrefix
=
'workflow.nodes.llm'
...
@@ -57,14 +58,18 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
...
@@ -57,14 +58,18 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
const
model
=
inputs
.
model
const
model
=
inputs
.
model
const
singleRunForms
=
(()
=>
{
const
singleRunForms
=
(()
=>
{
const
forms
=
[
const
forms
:
FormProps
[]
=
[]
{
label
:
t
(
`
${
i18nPrefix
}
.singleRun.variable`
)
!
,
if
(
varInputs
.
length
>
0
)
{
inputs
:
varInputs
,
forms
.
push
(
values
:
inputVarValues
,
{
onChange
:
setInputVarValues
,
label
:
t
(
`
${
i18nPrefix
}
.singleRun.variable`
)
!
,
},
inputs
:
varInputs
,
]
values
:
inputVarValues
,
onChange
:
setInputVarValues
,
},
)
}
if
(
inputs
.
context
?.
variable_selector
&&
inputs
.
context
?.
variable_selector
.
length
>
0
)
{
if
(
inputs
.
context
?.
variable_selector
&&
inputs
.
context
?.
variable_selector
.
length
>
0
)
{
forms
.
push
(
forms
.
push
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment