Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5e0b1470
authored
Jul 23, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: form format modules
parent
6027a966
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
client/src/pages/app/detail/components/BasicEdit/index.tsx
+2
-2
client/src/types/app.d.ts
+4
-2
client/src/utils/app.ts
+0
-0
No files found.
client/src/pages/app/detail/components/BasicEdit/index.tsx
View file @
5e0b1470
...
@@ -454,7 +454,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
...
@@ -454,7 +454,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
const
history
=
messages
.
slice
(
-
historyMaxLen
-
2
,
-
2
);
const
history
=
messages
.
slice
(
-
historyMaxLen
-
2
,
-
2
);
// 流请求,获取数据
// 流请求,获取数据
const
{
responseText
,
rawSearch
}
=
await
streamFetch
({
const
{
responseText
}
=
await
streamFetch
({
url
:
'/api/chat/chatTest'
,
url
:
'/api/chat/chatTest'
,
data
:
{
data
:
{
history
,
history
,
...
@@ -468,7 +468,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
...
@@ -468,7 +468,7 @@ const ChatTest = ({ appId }: { appId: string }) => {
abortSignal
:
controller
abortSignal
:
controller
});
});
return
{
responseText
,
rawSearch
};
return
{
responseText
};
},
},
[
modules
,
appId
,
appDetail
.
name
]
[
modules
,
appId
,
appDetail
.
name
]
);
);
...
...
client/src/types/app.d.ts
View file @
5e0b1470
...
@@ -58,12 +58,14 @@ export type VariableItemType = {
...
@@ -58,12 +58,14 @@ export type VariableItemType = {
};
};
/* app module */
/* app module */
export
type
AppModuleInputItemType
=
{
key
:
string
;
value
?:
any
;
connected
?:
boolean
};
export
type
AppModuleOutputItemType
=
{
key
:
string
;
targets
:
FlowOutputTargetItemType
[]
};
export
type
AppModuleItemType
=
{
export
type
AppModuleItemType
=
{
moduleId
:
string
;
moduleId
:
string
;
position
?:
XYPosition
;
position
?:
XYPosition
;
flowType
:
`
${
FlowModuleTypeEnum
}
`
;
flowType
:
`
${
FlowModuleTypeEnum
}
`
;
inputs
:
{
key
:
string
;
value
?:
any
;
connected
?:
boolean
}
[];
inputs
:
AppModuleInputItemType
[];
outputs
:
{
key
:
string
;
targets
:
FlowOutputTargetItemType
[]
}
[];
outputs
:
AppModuleOutputItemType
[];
};
};
export
type
AppItemType
=
{
export
type
AppItemType
=
{
...
...
client/src/utils/app.ts
View file @
5e0b1470
This diff is collapsed.
Click to expand it.
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