Download web/app/components/workflow/nodes/start/default.ts from ZHZ1024/dify: direct link, hf CLI and curl.
- Browser
- Download file 597 Bytes
-
https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/app/components/workflow/nodes/start/default.ts
- Command line
-
hf download hf://spaces/ZHZ1024/dify/web/app/components/workflow/nodes/start/default.ts
-
curl -L -o default.ts https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/app/components/workflow/nodes/start/default.ts
597 Bytes
| import type { NodeDefault } from '../../types' | |
| import type { StartNodeType } from './types' | |
| import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/constants' | |
| const nodeDefault: NodeDefault<StartNodeType> = { | |
| defaultValue: { | |
| variables: [], | |
| }, | |
| getAvailablePrevNodes() { | |
| return [] | |
| }, | |
| getAvailableNextNodes(isChatMode: boolean) { | |
| const nodes = isChatMode ? ALL_CHAT_AVAILABLE_BLOCKS : ALL_COMPLETION_AVAILABLE_BLOCKS | |
| return nodes | |
| }, | |
| checkValid() { | |
| return { | |
| isValid: true, | |
| } | |
| }, | |
| } | |
| export default nodeDefault | |