|
@@ -537,31 +537,6 @@ export const useWorkflowInit = () => {
|
|
|
const handleFetchPreloadData = useCallback(async () => {
|
|
|
try {
|
|
|
const nodesDefaultConfigsData = await fetchNodesDefaultConfigs(`/apps/${appDetail?.id}/workflows/default-workflow-block-configs`)
|
|
|
- nodesDefaultConfigsData.push({
|
|
|
- type: 'intent-recon-train',
|
|
|
- config: {
|
|
|
- method: 'get',
|
|
|
- authorization: {
|
|
|
- type: 'no-auth',
|
|
|
- },
|
|
|
- body: {
|
|
|
- type: 'none',
|
|
|
- },
|
|
|
- timeout: {
|
|
|
- connect: 10,
|
|
|
- read: 60,
|
|
|
- write: 20,
|
|
|
- max_connect_timeout: 10,
|
|
|
- max_read_timeout: 60,
|
|
|
- max_write_timeout: 20,
|
|
|
- },
|
|
|
- },
|
|
|
- retry_config: {
|
|
|
- max_retries: 3,
|
|
|
- retry_interval: 2,
|
|
|
- retry_enabled: true,
|
|
|
- },
|
|
|
- })
|
|
|
const publishedWorkflow = await fetchPublishedWorkflow(`/apps/${appDetail?.id}/workflows/publish`)
|
|
|
workflowStore.setState({
|
|
|
nodesDefaultConfigs: nodesDefaultConfigsData.reduce((acc, block) => {
|