feat(web): 调整节点入参形式
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import type {NodeProps} from '@xyflow/react'
|
||||
import AmisNode, {outputsFormColumns} from './AmisNode.tsx'
|
||||
|
||||
const LlmNode = (props: NodeProps) => AmisNode(
|
||||
props,
|
||||
'normal',
|
||||
'大模型',
|
||||
'使用大模型对话',
|
||||
undefined,
|
||||
[
|
||||
const LlmNode = (props: NodeProps) => AmisNode({
|
||||
nodeProps: props,
|
||||
type: 'normal',
|
||||
defaultNodeName: '大模型',
|
||||
defaultNodeDescription: '使用大模型对话',
|
||||
columnSchema: [
|
||||
{
|
||||
type: 'select',
|
||||
name: 'model',
|
||||
@@ -36,6 +35,6 @@ const LlmNode = (props: NodeProps) => AmisNode(
|
||||
},
|
||||
...outputsFormColumns(false, true, {text: {type: 'string'}}),
|
||||
],
|
||||
)
|
||||
})
|
||||
|
||||
export default LlmNode
|
||||
Reference in New Issue
Block a user