prompt-manager: Claude system as content blocks; avoid empty 'system'; PROMPT uses pm.system (blocks) or system_text; tests green
This commit is contained in:
@@ -23,13 +23,12 @@
|
||||
{
|
||||
"id": "n1",
|
||||
"type": "RawForward",
|
||||
"pos_x": 448,
|
||||
"pos_y": 352,
|
||||
"pos_x": 441,
|
||||
"pos_y": 354,
|
||||
"config": {
|
||||
"passthrough_headers": true,
|
||||
"extra_headers": "{}",
|
||||
"_origId": "n1",
|
||||
"sleep_ms": 5000
|
||||
"_origId": "n1"
|
||||
},
|
||||
"in": {
|
||||
"depends": "n5.done"
|
||||
@@ -38,10 +37,10 @@
|
||||
{
|
||||
"id": "n2",
|
||||
"type": "ProviderCall",
|
||||
"pos_x": 647,
|
||||
"pos_y": 50,
|
||||
"pos_x": 652,
|
||||
"pos_y": 46,
|
||||
"config": {
|
||||
"provider": "claude",
|
||||
"provider": "gemini",
|
||||
"provider_configs": {
|
||||
"openai": {
|
||||
"base_url": "https://api.openai.com",
|
||||
@@ -59,33 +58,25 @@
|
||||
"base_url": "https://proxy.malepreg.lol/proxy/aws/claude",
|
||||
"endpoint": "/v1/messages",
|
||||
"headers": "{\"x-api-key\":\"[[Clod]]\",\"anthropic-version\":\"2023-06-01\",\"anthropic-beta\":\"output-128k-2025-02-19\"}",
|
||||
"template": "{\n \"model\": \"claude-opus-4-20250514\",\n [[PROMPT]],\n \"max_tokens\": {{ incoming.json.max_tokens|default(params.max_tokens|default(256)) }},\n \"stop_sequences\": {{ incoming.json.stop_sequences|default(params.stop|default([])) }},\n \"stream\": {{ incoming.json.stream|default(false) }},\n \"thinking\": {\n \"type\": \"{{ incoming.json.thinking.type|default('enabled') }}\",\n \"budget_tokens\": {{ incoming.json.thinking.budget_tokens|default(6000) }}\n }\n}"
|
||||
"template": "{\n \"model\": \"claude-opus-4-20250514\",\n [[PROMPT]],\n \"max_tokens\": {{ incoming.json.max_tokens|default(params.max_tokens|default(256)) }},\n \"stop_sequences\": {{ incoming.json.stop_sequences|default(params.stop|default([])) }},\n \"stream\": {{ incoming.json.stream|default(false) }},\n \"thinking\": {\n \"type\": \"{{ incoming.json.thinking.type|default('enabled') }}\",\n \"budget_tokens\": {{ incoming.json.thinking.budget_tokens|default(3000) }}\n }\n}"
|
||||
}
|
||||
},
|
||||
"blocks": [
|
||||
{
|
||||
"id": "bmfmstojw",
|
||||
"name": "Great assustant",
|
||||
"role": "system",
|
||||
"prompt": "You are Great assustant",
|
||||
"enabled": true,
|
||||
"order": 0
|
||||
},
|
||||
{
|
||||
"id": "bmfchnynm",
|
||||
"name": "Сделай [[OUT1]] красивее",
|
||||
"role": "user",
|
||||
"prompt": "Сделай [[OUT1]] красивее",
|
||||
"enabled": true,
|
||||
"order": 0
|
||||
},
|
||||
{
|
||||
"id": "bmfjkrpjo",
|
||||
"name": "New Block",
|
||||
"role": "system",
|
||||
"prompt": "1",
|
||||
"enabled": true,
|
||||
"order": 1
|
||||
},
|
||||
{
|
||||
"id": "bmfjks4vc",
|
||||
"name": "New Block1",
|
||||
"role": "system",
|
||||
"prompt": "1",
|
||||
"enabled": true,
|
||||
"order": 2
|
||||
}
|
||||
],
|
||||
"_origId": "n2"
|
||||
@@ -98,7 +89,7 @@
|
||||
"id": "n3",
|
||||
"type": "ProviderCall",
|
||||
"pos_x": 654,
|
||||
"pos_y": 564,
|
||||
"pos_y": 566,
|
||||
"config": {
|
||||
"provider": "openai",
|
||||
"provider_configs": {
|
||||
@@ -131,8 +122,7 @@
|
||||
"order": 0
|
||||
}
|
||||
],
|
||||
"_origId": "n3",
|
||||
"sleep_ms": 5000
|
||||
"_origId": "n3"
|
||||
},
|
||||
"in": {
|
||||
"depends": "n1.done"
|
||||
@@ -210,13 +200,21 @@
|
||||
}
|
||||
},
|
||||
"blocks": [
|
||||
{
|
||||
"id": "bmfmk7g4a",
|
||||
"name": "New Block",
|
||||
"role": "system",
|
||||
"prompt": "",
|
||||
"enabled": true,
|
||||
"order": 0
|
||||
},
|
||||
{
|
||||
"id": "bmfdyczbd",
|
||||
"name": "Объедени [[OUT3]], [[OUT4]] сделай более красиво.",
|
||||
"role": "user",
|
||||
"prompt": "Объедени [ [[OUT3]], [[OUT2]] ] сделай более красиво. напиши слово \"Красиво\" в конце.",
|
||||
"enabled": true,
|
||||
"order": 0
|
||||
"order": 1
|
||||
},
|
||||
{
|
||||
"id": "bmfh98jkh",
|
||||
@@ -224,7 +222,15 @@
|
||||
"role": "system",
|
||||
"prompt": "1",
|
||||
"enabled": true,
|
||||
"order": 1
|
||||
"order": 2
|
||||
},
|
||||
{
|
||||
"id": "bmfmk74yz",
|
||||
"name": "New Block",
|
||||
"role": "assistant",
|
||||
"prompt": "fuf",
|
||||
"enabled": true,
|
||||
"order": 3
|
||||
}
|
||||
],
|
||||
"_origId": "n6"
|
||||
|
||||
Reference in New Issue
Block a user