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
9c70befa
Commit
9c70befa
authored
Feb 20, 2024
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: move node type to self struct
parent
fcadb807
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
23 deletions
+24
-23
mock.ts
web/app/components/workflow/nodes/llm/mock.ts
+1
-1
types.ts
web/app/components/workflow/nodes/llm/types.ts
+23
-0
types.ts
web/app/components/workflow/types.ts
+0
-22
No files found.
web/app/components/workflow/nodes/llm/mock.ts
View file @
9c70befa
import
type
{
LLMNodeData
}
from
'../../types'
import
{
MemoryRole
}
from
'../../types'
import
type
{
LLMNodeData
}
from
'./types'
import
{
Resolution
}
from
'@/types/app'
export
const
mockLLMNodeData
:
LLMNodeData
=
{
...
...
web/app/components/workflow/nodes/llm/types.ts
0 → 100644
View file @
9c70befa
import
type
{
Resolution
}
from
'@/types/app'
import
type
{
Memory
,
ModelConfig
,
PromptItem
,
ValueSelector
,
Variable
}
from
'@/app/components/workflow/types'
export
type
LLMNodeData
=
{
title
:
string
desc
:
string
type
:
string
model
:
ModelConfig
variables
:
Variable
[]
prompt
:
PromptItem
[]
|
PromptItem
memory
:
Memory
context
:
{
enabled
:
boolean
size
:
number
}
vision
:
{
enabled
:
boolean
variable_selector
:
ValueSelector
configs
:
{
detail
:
Resolution
}
}
}
web/app/components/workflow/types.ts
View file @
9c70befa
import
type
{
Node
as
ReactFlowNode
}
from
'reactflow'
import
type
{
Resolution
}
from
'@/types/app'
export
enum
BlockEnum
{
Start
=
'start'
,
...
...
@@ -62,27 +61,6 @@ export type Memory = {
}
}
export
type
LLMNodeData
=
{
title
:
string
desc
:
string
type
:
string
model
:
ModelConfig
variables
:
Variable
[]
prompt
:
PromptItem
[]
|
PromptItem
memory
:
Memory
context
:
{
enabled
:
boolean
size
:
number
}
vision
:
{
enabled
:
boolean
variable_selector
:
ValueSelector
configs
:
{
detail
:
Resolution
}
}
}
export
type
Var
=
{
variable
:
string
type
:
string
...
...
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