Open
Conversation
|
✅ Docs Preview Deployed! 🔗 👀 Click here to visit preview |
|
✅ Build Successful - Preview fastgpt Image for this PR: |
|
✅ Build Successful - Preview mcp_server Image for this PR: |
|
✅ Build Successful - Preview code-sandbox Image for this PR: |
3bc3f13 to
c023370
Compare
c121914yu
reviewed
Apr 1, 2026
|
|
||
| /** 带子画布(parent / child)的父容器节点:loop / batch / loopPro */ | ||
| export function isParentChildContainerFlowNodeType(flowNodeType: FlowNodeTypeEnum): boolean { | ||
| return ( |
| import { NodeOutputKeyEnum } from '../constants'; | ||
| import type { ClassifyQuestionAgentItemType } from '../template/system/classifyQuestion/type'; | ||
| import type { NextApiResponse } from 'next'; | ||
| import type { ServerResponse } from 'http'; |
| /** 与 WORKFLOW_BATCH_MAX_CONCURRENCY 对齐(Next 注入为 NEXT_PUBLIC_*) */ | ||
| export function getWorkflowBatchMaxConcurrencyCap(): number { | ||
| const n = readIntEnv( | ||
| typeof process !== 'undefined' ? process.env.NEXT_PUBLIC_WORKFLOW_BATCH_MAX_CONCURRENCY : '' |
Collaborator
There was a problem hiding this comment.
要用 env 直接调用,不要再用 process.env 了
| adaptCatchError(e.nodes, e.edges); | ||
|
|
||
| const nodes = e.nodes?.map((item) => storeNode2FlowNode({ item, t })) || []; | ||
| const nodes = (e.nodes || []).map((item) => storeNode2FlowNode({ item, t })) || []; |
| status: 'warning', | ||
| title: t('workflow:can_not_loop') | ||
| title: t( | ||
| templateNode.flowNodeType === FlowNodeTypeEnum.batch |
| const isLoopPro = templateNode.flowNodeType === FlowNodeTypeEnum.loopPro; | ||
| const startTemplate = isLoopPro | ||
| ? LoopStartNode | ||
| : { ...LoopStartNode, name: 'workflow:loop_graph_start' as any }; |
c121914yu
reviewed
Apr 1, 2026
c121914yu
reviewed
Apr 1, 2026
| const parent = getNodeById(data.parentNodeId); | ||
| const isUnderLoopPro = parent?.flowNodeType === FlowNodeTypeEnum.loopPro; | ||
|
|
||
| const intro = |
Collaborator
There was a problem hiding this comment.
不要加工,都是模板设置好的,直接传入使用,不然为啥还要模板渲染。
c121914yu
reviewed
Apr 1, 2026
| <Avatar src={node.avatar} w={isArray ? '1rem' : '1.05rem'} borderRadius={'xs'} /> | ||
| <Box ml={1}>{t(node.name as any)}</Box> | ||
| <Avatar | ||
| src={resolveReferenceListNodeAvatar(node, getNodeById)} |
|
|
||
| const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType]; | ||
| const isLoopNode = node?.flowNodeType === FlowNodeTypeEnum.loop; | ||
| const isLoopNode = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.