This commit is contained in:
2025-09-11 17:27:15 +03:00
parent 3c77c3dc2e
commit 11a0535712
32 changed files with 4682 additions and 442 deletions

View File

@@ -1,34 +1,39 @@
{
"id": "pipeline_editor",
"name": "Edited Pipeline",
"parallel_limit": 8,
"loop_mode": "iterative",
"loop_max_iters": 1000,
"loop_time_budget_ms": 999999999999,
"clear_var_store": true,
"nodes": [
{
"id": "n1",
"type": "RawForward",
"pos_x": 174,
"pos_y": 275.5,
"pos_x": 450,
"pos_y": 346,
"config": {
"passthrough_headers": true,
"extra_headers": "{}",
"_origId": "n1"
},
"in": {
"depends": "n6.done"
"depends": "n5.done"
}
},
{
"id": "n2",
"type": "ProviderCall",
"pos_x": 812.8888888888889,
"pos_y": -283,
"pos_x": 662,
"pos_y": 52,
"config": {
"provider": "gemini",
"provider": "openai",
"provider_configs": {
"openai": {
"base_url": "https://api.openai.com",
"endpoint": "/v1/chat/completions",
"headers": "{\"Authorization\":\"Bearer [[VAR:incoming.headers.authorization]]\"}",
"template": "{\n \"model\": \"{{ model }}\",\n [[PROMPT]],\n \"temperature\": {{ incoming.json.temperature|default(params.temperature|default(0.7)) }},\n \"top_p\": {{ incoming.json.top_p|default(params.top_p|default(1)) }},\n \"max_tokens\": {{ incoming.json.max_tokens|default(params.max_tokens|default(256)) }},\n \"max_completion_tokens\": {{ incoming.json.max_completion_tokens|default(params.max_tokens|default(256)) }},\n \"presence_penalty\": {{ incoming.json.presence_penalty|default(0) }},\n \"frequency_penalty\": {{ incoming.json.frequency_penalty|default(0) }},\n \"stop\": {{ incoming.json.stop|default(params.stop|default([])) }},\n \"stream\": {{ incoming.json.stream|default(false) }}\n}"
"headers": "{\"Authorization\":\"Bearer [[MyOpenAiKey]]\"}",
"template": "{\n \"model\": \"gpt-5-chat-latest\",\n [[PROMPT]],\n \"temperature\": {{ incoming.json.temperature|default(params.temperature|default(0.7)) }},\n \"top_p\": {{ incoming.json.top_p|default(params.top_p|default(1)) }},\n \"max_tokens\": 500,\n \"presence_penalty\": {{ incoming.json.presence_penalty|default(0) }},\n \"frequency_penalty\": {{ incoming.json.frequency_penalty|default(0) }},\n \"stop\": {{ incoming.json.stop|default(params.stop|default([])) }},\n \"stream\": {{ incoming.json.stream|default(false) }}\n}"
},
"gemini": {
"base_url": "https://generativelanguage.googleapis.com",
@@ -62,8 +67,8 @@
{
"id": "n3",
"type": "ProviderCall",
"pos_x": 799,
"pos_y": 771.3333333333334,
"pos_x": 660.2222222222222,
"pos_y": 561,
"config": {
"provider": "openai",
"provider_configs": {
@@ -104,9 +109,47 @@
},
{
"id": "n4",
"type": "Return",
"pos_x": 1277,
"pos_y": 139,
"config": {
"target_format": "auto",
"text_template": "[[OUT6]] [[Test]]",
"_origId": "n4"
},
"in": {
"depends": "n7.true"
}
},
{
"id": "n5",
"type": "SetVars",
"pos_x": 180,
"pos_y": 477,
"config": {
"variables": [
{
"id": "vmfche3wn",
"name": "Test",
"mode": "string",
"value": "Быбра"
},
{
"id": "vmfchjpw4",
"name": "MyOpenAiKey",
"mode": "string",
"value": "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"
}
],
"_origId": "n5"
},
"in": {}
},
{
"id": "n6",
"type": "ProviderCall",
"pos_x": 1057.5,
"pos_y": 208,
"pos_x": 902,
"pos_y": 320,
"config": {
"provider": "openai",
"provider_configs": {
@@ -131,60 +174,36 @@
},
"blocks": [
{
"id": "bmfchm54f",
"name": "Объедени [[OUT3]], [[OUT2]] сделай более красиво.",
"id": "bmfdyczbd",
"name": "Объедени [[OUT3]], [[OUT4]] сделай более красиво.",
"role": "user",
"prompt": "Объедени [[OUT3]], [[OUT4]] сделай более красиво. [[TEST]]",
"prompt": "Объедени [ [[OUT3]], [[OUT4]] ] сделай более красиво. напиши слово \"Красиво\" в конце.",
"enabled": true,
"order": 0
}
],
"_origId": "n4"
"_origId": "n6"
},
"in": {
"depends": [
"n2.done",
"n3.done",
"n2.done"
"n7.false"
]
}
},
{
"id": "n5",
"type": "Return",
"pos_x": 1366,
"pos_y": 234,
"id": "n7",
"type": "If",
"pos_x": 1313,
"pos_y": 566,
"config": {
"target_format": "auto",
"text_template": "[[OUT4]] [[Test]]",
"_origId": "n5"
"expr": "[[OUT6]] contains \"Красиво\"",
"_origId": "n7"
},
"in": {
"depends": "n4.done"
"depends": "n6.done"
}
},
{
"id": "n6",
"type": "SetVars",
"pos_x": -102,
"pos_y": 691,
"config": {
"variables": [
{
"id": "vmfche3wn",
"name": "Test",
"mode": "string",
"value": "Быбра"
},
{
"id": "vmfchjpw4",
"name": "MyOpenAiKey",
"mode": "string",
"value": "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"
}
],
"_origId": "n6"
},
"in": {}
}
]
}