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
2f81fbc4
authored
Aug 16, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: http node response
parent
e8ff91c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
client/src/constants/flow/ModuleTemplate.ts
+2
-4
client/src/pages/app/detail/components/AdEdit/components/Nodes/NodeHttp.tsx
+2
-2
client/src/pages/app/detail/components/AdEdit/components/render/RenderOutput.tsx
+11
-2
client/src/service/moduleDispatch/agent/extract.ts
+2
-2
No files found.
client/src/constants/flow/ModuleTemplate.ts
View file @
2f81fbc4
...
...
@@ -158,8 +158,7 @@ export const ChatModule: FlowModuleTemplateType = {
label: '系统提示词',
valueType: FlowValueTypeEnum.string,
description: ChatModelSystemTip,
placeholder: ChatModelSystemTip,
value: ''
placeholder: ChatModelSystemTip
},
{
key: 'limitPrompt',
...
...
@@ -167,8 +166,7 @@ export const ChatModule: FlowModuleTemplateType = {
valueType: FlowValueTypeEnum.string,
label: '限定词',
description: ChatModelLimitTip,
placeholder: ChatModelLimitTip,
value: ''
placeholder: ChatModelLimitTip
},
Input_Template_TFSwitch,
{
...
...
client/src/pages/app/detail/components/AdEdit/components/Nodes/NodeHttp.tsx
View file @
2f81fbc4
...
...
@@ -56,7 +56,7 @@ const NodeHttp = ({
moduleId
,
type
:
'outputs'
,
key
,
value
:
outputs
.
concat
(
[
value
:
[
{
key
,
label
:
`出参${outputs.length}`
,
...
...
@@ -65,7 +65,7 @@ const NodeHttp = ({
edit
:
true
,
targets
:
[]
}
])
]
.
concat
(
outputs
as
any
)
});
}
}
>
...
...
client/src/pages/app/detail/components/AdEdit/components/render/RenderOutput.tsx
View file @
2f81fbc4
...
...
@@ -85,7 +85,14 @@ const Label = ({
value
:
outputs
.
map
((
output
)
=>
(
output
.
key
===
outputKey
?
data
:
output
))
});
}
else
{
const
storeOutputs
=
outputs
.
filter
((
output
)
=>
output
.
key
!==
editField
.
key
);
let
index
=
0
;
const
storeOutputs
=
outputs
.
filter
((
output
,
i
)
=>
{
if
(
output
.
key
!==
editField
.
key
)
{
return
true
;
}
index
=
i
;
return
false
;
});
onChangeNode
({
moduleId
,
...
...
@@ -94,11 +101,13 @@ const Label = ({
value
:
storeOutputs
});
setTimeout
(()
=>
{
storeOutputs
.
splice
(
index
,
0
,
data
);
console
.
log
(
index
,
storeOutputs
);
onChangeNode
({
moduleId
,
type
:
'outputs'
,
key
:
''
,
value
:
storeOutputs
.
concat
(
data
)
value
:
[...
storeOutputs
]
});
},
10
);
}
...
...
client/src/service/moduleDispatch/agent/extract.ts
View file @
2f81fbc4
...
...
@@ -25,7 +25,7 @@ export type Response = {
const
agentModel
=
'gpt-3.5-turbo'
;
const
agentFunName
=
'agent_extract_data'
;
const
maxTokens
=
3
000
;
const
maxTokens
=
4
000
;
export
async
function
dispatchContentExtract
({
userOpenaiAccount
,
...
...
@@ -66,7 +66,7 @@ export async function dispatchContentExtract({
};
});
//
function body
// function body
const
agentFunction
=
{
name
:
agentFunName
,
description
:
`
${
description
}
\n如果内容不存在,返回空字符串。`
,
...
...
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