mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: child usage remove (#5698)
Some checks are pending
Document deploy / sync-images (push) Waiting to run
Document deploy / generate-timestamp (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
Some checks are pending
Document deploy / sync-images (push) Waiting to run
Document deploy / generate-timestamp (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
* fix: child usage remove * remove runloop empty usage
This commit is contained in:
parent
051455238c
commit
88633a2a42
|
|
@ -61,6 +61,7 @@ export const dispatchAppRequest = async (props: Props): Promise<Response> => {
|
|||
|
||||
const { flowResponses, flowUsages, assistantResponses, system_memories } = await runWorkflow({
|
||||
...props,
|
||||
usageId: undefined,
|
||||
runningAppInfo: {
|
||||
id: String(appData._id),
|
||||
name: appData.name,
|
||||
|
|
|
|||
|
|
@ -112,6 +112,7 @@ export const runToolCall = async (
|
|||
// Run entry tool
|
||||
const toolRunResponse = await runWorkflow({
|
||||
...workflowProps,
|
||||
usageId: undefined,
|
||||
isToolCall: true
|
||||
});
|
||||
const stringToolResponse = formatToolResponse(toolRunResponse.toolResponses);
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ export const dispatchRunAppNode = async (props: Props): Promise<Response> => {
|
|||
system_memories
|
||||
} = await runWorkflow({
|
||||
...props,
|
||||
usageId: undefined,
|
||||
lastInteractive: childrenInteractive,
|
||||
// Rewrite stream mode
|
||||
...(system_forbid_stream
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
|
|||
|
||||
const response = await runWorkflow({
|
||||
...props,
|
||||
usageId: undefined,
|
||||
lastInteractive: interactiveData?.childrenResponse,
|
||||
variables: newVariables,
|
||||
runtimeNodes,
|
||||
|
|
@ -150,12 +151,14 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
|
|||
loopDetail: loopResponseDetail,
|
||||
mergeSignId: props.node.nodeId
|
||||
},
|
||||
[DispatchNodeResponseKeyEnum.nodeDispatchUsages]: [
|
||||
{
|
||||
totalPoints,
|
||||
moduleName: name
|
||||
}
|
||||
],
|
||||
[DispatchNodeResponseKeyEnum.nodeDispatchUsages]: totalPoints
|
||||
? [
|
||||
{
|
||||
totalPoints,
|
||||
moduleName: name
|
||||
}
|
||||
]
|
||||
: [],
|
||||
[DispatchNodeResponseKeyEnum.newVariables]: newVariables
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ export const dispatchRunPlugin = async (props: RunPluginProps): Promise<RunPlugi
|
|||
const { flowResponses, flowUsages, assistantResponses, runTimes, system_memories } =
|
||||
await runWorkflow({
|
||||
...props,
|
||||
usageId: undefined,
|
||||
// Rewrite stream mode
|
||||
...(system_forbid_stream
|
||||
? {
|
||||
|
|
|
|||
Loading…
Reference in New Issue