feat: llm基本功能已实现

This commit is contained in:
2025-05-05 01:14:39 +08:00
parent bef6849e45
commit 077166e1a6
21 changed files with 701 additions and 44 deletions

View File

@@ -1,4 +1,3 @@
{
"appId": 1919041086810968064,
"name": "llm运行测试",
@@ -6,7 +5,7 @@
"graph": {
"nodes": [
{
"id": "5",
"id": "node_5",
"type": "start",
"initialized": false,
"position": {
@@ -49,7 +48,7 @@
"height": 40
},
{
"id": "700",
"id": "node_700",
"type": "llm",
"initialized": false,
"position": {
@@ -61,7 +60,7 @@
"icon": "",
"toolbarPosition": "right",
"config": {
"context": "5.background",
"context": "node_5.background",
"retryConfig": {
"enable": true,
"maxRetries": 3,
@@ -75,7 +74,7 @@
},
{
"role": "user",
"text": "请你解释一下上述问题${5.query}",
"text": "请你解释一下上述问题${node_5.query}",
"id": "2"
}
],
@@ -112,7 +111,7 @@
"height": 40
},
{
"id": "802",
"id": "node_802",
"type": "end",
"initialized": false,
"position": {
@@ -123,7 +122,30 @@
"label": "结束",
"icon": "",
"toolbarPosition": "right",
"config": {},
"config": {
"variables": [
{
"variable": "query",
"variableKey": "node_5.query"
},
{
"variable": "background",
"variableKey": "node_5.background"
},
{
"variable": "usage",
"variableKey": "node_700.usage"
},
{
"variable": "finishReason",
"variableKey": "node_700.finishReason"
},
{
"variable": "text",
"variableKey": "node_700.text"
}
]
},
"handles": [
{
"id": "13",
@@ -142,8 +164,8 @@
{
"id": "vueflow__edge-551-70057",
"type": "default",
"source": "5",
"target": "700",
"source": "node_5",
"target": "node_700",
"sourceHandle": "51",
"targetHandle": "57",
"data": {},
@@ -159,8 +181,8 @@
{
"id": "802",
"type": "default",
"source": "700",
"target": "802",
"source": "node_700",
"target": "node_802",
"sourceHandle": "35",
"targetHandle": "13",
"data": {},
@@ -185,5 +207,4 @@
"zoom": 3.5988075528449266
}
}
}