演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
492 B
TypeScript
19 lines
492 B
TypeScript
import type { RAGPipelineVariable } from '@/models/pipeline'
|
|
import { PipelineInputVarType } from '@/models/pipeline'
|
|
|
|
export const createPipelineVariable = (
|
|
overrides: Partial<RAGPipelineVariable> = {},
|
|
): RAGPipelineVariable => ({
|
|
belong_to_node_id: 'source-node',
|
|
type: PipelineInputVarType.textInput,
|
|
variable: 'source',
|
|
label: 'Source',
|
|
required: true,
|
|
default_value: '',
|
|
max_length: 256,
|
|
placeholder: 'Enter source',
|
|
tooltips: '',
|
|
options: [],
|
|
...overrides,
|
|
})
|