Repository navigation
Expand file tree
/
Copy pathphase.json
More file actions
94 lines (94 loc) · 2.99 KB
/
Copy pathphase.json
File metadata and controls
94 lines (94 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[
{
"id": "2fd54c5f0db04e4b",
"type": "tab",
"label": "Responses Phase Example",
"disabled": false,
"info": "",
"env": []
},
{
"id": "0c8ab1e1e23314fd",
"type": "inject",
"z": "2fd54c5f0db04e4b",
"name": "Create Phased Response",
"props": [
{
"p": "ai.model",
"v": "gpt-5.4",
"vt": "str"
},
{
"p": "ai.prompt_cache_key",
"v": "responses-phase-example-v1",
"vt": "str"
},
{
"p": "ai.input[0]",
"v": "{\"type\":\"message\",\"role\":\"assistant\",\"phase\":\"commentary\",\"content\":[{\"type\":\"output_text\",\"text\":\"I will think through the request and then deliver the answer clearly.\"}]}",
"vt": "json"
},
{
"p": "ai.input[1]",
"v": "{\"type\":\"message\",\"role\":\"user\",\"content\":[{\"type\":\"input_text\",\"text\":\"Summarize the purpose of this product launch plan in one concise paragraph.\"}]}",
"vt": "json"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 330,
"y": 240,
"wires": [
[
"4e34ed1e9c6c8f31"
]
]
},
{
"id": "f2dc3af908db35ee",
"type": "comment",
"z": "2fd54c5f0db04e4b",
"name": "Configure the red-marked node, then send the inject node.",
"info": "This example shows how to preserve assistant `phase` on a Responses request.\n\nBefore running:\n- import the flow, then configure the red-marked `OpenAI API` node with your own `Service Host`\n- keep `gpt-5.4` or replace it with another Responses-compatible model if needed\n\nWhat this flow sends:\n- `prompt_cache_key`\n- an assistant message labeled `phase: commentary`\n- a follow-up user message\n\nExpected result:\n- the response appears in the debug sidebar as the normal `createModelResponse` output",
"x": 440,
"y": 180,
"wires": []
},
{
"id": "4e34ed1e9c6c8f31",
"type": "OpenAI API",
"z": "2fd54c5f0db04e4b",
"name": "Create Model Response",
"property": "ai",
"propertyType": "msg",
"service": "",
"method": "createModelResponse",
"x": 560,
"y": 240,
"wires": [
[
"0b5d64c45d8709c8"
]
]
},
{
"id": "0b5d64c45d8709c8",
"type": "debug",
"z": "2fd54c5f0db04e4b",
"name": "Model Response",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 770,
"y": 240,
"wires": []
}
]