@inductiv/node-red-openai-api 1.87.3 → 1.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -40
- package/examples/responses/mcp.json +87 -0
- package/gulpfile.js +15 -0
- package/lib.js +16375 -539
- package/locales/en-US/node.json +9 -0
- package/node.html +3037 -3823
- package/node.js +3 -2
- package/package.json +13 -2
- package/src/assistants/help.html +353 -0
- package/src/assistants/methods.js +47 -0
- package/src/assistants/template.html +38 -0
- package/src/audio/help.html +193 -0
- package/src/audio/methods.js +38 -0
- package/src/audio/template.html +14 -0
- package/src/batch/help.html +97 -0
- package/src/batch/methods.js +39 -0
- package/src/batch/template.html +19 -0
- package/src/chat/help.html +436 -0
- package/src/chat/methods.js +82 -0
- package/src/chat/template.html +30 -0
- package/src/container-files/help.html +144 -0
- package/src/container-files/methods.js +60 -0
- package/src/container-files/template.html +7 -0
- package/src/containers/help.html +96 -0
- package/src/containers/methods.js +34 -0
- package/src/containers/template.html +6 -0
- package/src/embeddings/help.html +57 -0
- package/src/embeddings/methods.js +12 -0
- package/src/embeddings/template.html +6 -0
- package/src/files/help.html +102 -0
- package/src/files/methods.js +52 -0
- package/src/files/template.html +22 -0
- package/src/fine-tuning/help.html +187 -0
- package/src/fine-tuning/methods.js +68 -0
- package/src/fine-tuning/template.html +26 -0
- package/src/images/help.html +208 -0
- package/src/images/methods.js +38 -0
- package/src/images/template.html +14 -0
- package/src/lib.js +58 -0
- package/src/messages/help.html +174 -0
- package/src/messages/methods.js +48 -0
- package/src/messages/template.html +18 -0
- package/src/models/help.html +47 -0
- package/src/models/methods.js +30 -0
- package/src/models/template.html +14 -0
- package/src/moderations/help.html +31 -0
- package/src/moderations/methods.js +11 -0
- package/src/moderations/template.html +6 -0
- package/src/node.html +250 -0
- package/src/responses/help.html +248 -0
- package/src/responses/methods.js +55 -0
- package/src/responses/template.html +22 -0
- package/src/runs/help.html +563 -0
- package/src/runs/methods.js +157 -0
- package/src/runs/template.html +35 -0
- package/src/threads/help.html +88 -0
- package/src/threads/methods.js +39 -0
- package/src/threads/template.html +18 -0
- package/src/uploads/help.html +116 -0
- package/src/uploads/methods.js +121 -0
- package/src/uploads/template.html +21 -0
- package/src/vector-store-file-batches/help.html +156 -0
- package/src/vector-store-file-batches/methods.js +84 -0
- package/src/vector-store-file-batches/template.html +22 -0
- package/src/vector-store-files/help.html +133 -0
- package/src/vector-store-files/methods.js +59 -0
- package/src/vector-store-files/template.html +18 -0
- package/src/vector-stores/help.html +162 -0
- package/src/vector-stores/methods.js +54 -0
- package/src/vector-stores/template.html +22 -0
- package/locales/de-DE/node.json +0 -144
- package/locales/ja/node.json +0 -144
- package/locales/zh-CN/node.json +0 -144
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
<section>
|
|
2
|
+
<details>
|
|
3
|
+
<summary style="font-weight: bold;">🔄 Runs</summary>
|
|
4
|
+
<a href="https://platform.openai.com/docs/api-reference/runs" target="_blank">Official Documentation</a>
|
|
5
|
+
<h4 style="font-weight: bolder;"> ⋙ Create Thread and Run</h4>
|
|
6
|
+
<p>Create a thread and run it in one request.</p>
|
|
7
|
+
<dl class="message-properties">
|
|
8
|
+
<h4>msg.payload Properties</h4>
|
|
9
|
+
|
|
10
|
+
<dt>
|
|
11
|
+
assistant_id
|
|
12
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-assistant_id"
|
|
13
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
14
|
+
<span class="property-type">string</span>
|
|
15
|
+
</dt>
|
|
16
|
+
<dd>The ID of the assistant to use to execute this run.</dd>
|
|
17
|
+
<dt class="optional">
|
|
18
|
+
thread
|
|
19
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-thread"
|
|
20
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
21
|
+
<span class="property-type">object</span>
|
|
22
|
+
</dt>
|
|
23
|
+
<dd>A thread object to create with the run.</dd>
|
|
24
|
+
|
|
25
|
+
<dt class="optional">
|
|
26
|
+
model
|
|
27
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-model"
|
|
28
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
29
|
+
<span class="property-type">string</span>
|
|
30
|
+
</dt>
|
|
31
|
+
<dd>The ID of the Model to be used to execute this run.</dd>
|
|
32
|
+
<dt class="optional">
|
|
33
|
+
instructions
|
|
34
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-instructions"
|
|
35
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
36
|
+
<span class="property-type">string</span>
|
|
37
|
+
</dt>
|
|
38
|
+
<dd>Override the default system message of the assistant.</dd>
|
|
39
|
+
|
|
40
|
+
<dt class="optional">
|
|
41
|
+
tools
|
|
42
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-tools"
|
|
43
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
44
|
+
<span class="property-type">array</span>
|
|
45
|
+
</dt>
|
|
46
|
+
<dd>Override the tools the assistant can use for this run.</dd>
|
|
47
|
+
|
|
48
|
+
<dt class="optional">
|
|
49
|
+
tool_resources
|
|
50
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-tool_resources"
|
|
51
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
52
|
+
<span class="property-type">object or null</span>
|
|
53
|
+
</dt>
|
|
54
|
+
<dd>A set of resources that are used by the assistant's tools.</dd>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<dt class="optional">
|
|
58
|
+
metadata
|
|
59
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-metadata"
|
|
60
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
61
|
+
<span class="property-type">object</span>
|
|
62
|
+
</dt>
|
|
63
|
+
<dd>Set of 16 key-value pairs that can be attached to an object.</dd>
|
|
64
|
+
|
|
65
|
+
<dt class="optional">
|
|
66
|
+
temperature
|
|
67
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-temperature"
|
|
68
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
69
|
+
<span class="property-type">number</span>
|
|
70
|
+
</dt>
|
|
71
|
+
<dd>What sampling temperature to use, between 0 and 2.</dd>
|
|
72
|
+
|
|
73
|
+
<dt class="optional">
|
|
74
|
+
top_p
|
|
75
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-top_p"
|
|
76
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
77
|
+
<span class="property-type">number or null</span>
|
|
78
|
+
</dt>
|
|
79
|
+
<dd>An alternative to sampling with temperature.</dd>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
<dt class="optional">
|
|
83
|
+
stream
|
|
84
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-stream"
|
|
85
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
86
|
+
<span class="property-type">boolean</span>
|
|
87
|
+
</dt>
|
|
88
|
+
<dd>If <code>true</code>, returns a stream of events that happen during the Run as server-sent events,
|
|
89
|
+
terminating when the Run enters a terminal state with a <code>data: [DONE]</code> message.</dd>
|
|
90
|
+
|
|
91
|
+
<dt class="optional">
|
|
92
|
+
max_prompt_tokens
|
|
93
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-max_prompt_tokens"
|
|
94
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
95
|
+
<span class="property-type">integer</span>
|
|
96
|
+
</dt>
|
|
97
|
+
<dd>The maximum number of prompt tokens that may be used over the course of the run.</dd>
|
|
98
|
+
|
|
99
|
+
<dt class="optional">
|
|
100
|
+
max_completion_tokens
|
|
101
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-max_completion_tokens"
|
|
102
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
103
|
+
<span class="property-type">integer</span>
|
|
104
|
+
</dt>
|
|
105
|
+
<dd>The maximum number of completion tokens that may be used over the course of the run.</dd>
|
|
106
|
+
|
|
107
|
+
<dt class="optional">
|
|
108
|
+
truncation_strategy
|
|
109
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-truncation_strategy"
|
|
110
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
111
|
+
<span class="property-type">object</span>
|
|
112
|
+
<dd>
|
|
113
|
+
<strong><code>@property {string} type</code></strong> - The truncation strategy to use for the thread.
|
|
114
|
+
The default is <code>auto</code>. If set to <code>last_messages</code>, the thread will be truncated to
|
|
115
|
+
the n most recent messages in the thread. When set to <code>auto</code>, messages in the middle of the
|
|
116
|
+
thread will be dropped to fit the context length of the model, <code>max_prompt_tokens</code>.
|
|
117
|
+
</dd>
|
|
118
|
+
<dd>
|
|
119
|
+
<strong><code>@property {integer} [last_messages]</code></strong> - The number of most recent messages
|
|
120
|
+
from the thread when constructing the context for the run.
|
|
121
|
+
</dd>
|
|
122
|
+
</dt>
|
|
123
|
+
|
|
124
|
+
<dt class="optional">
|
|
125
|
+
tool_choice
|
|
126
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-tool_choice"
|
|
127
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
128
|
+
<span class="property-type">string | object</span>
|
|
129
|
+
</dt>
|
|
130
|
+
<dd>Controls which (if any) tool is called by the model. <code>none</code> means the model will not call any
|
|
131
|
+
tools and instead generates a message. <code>auto</code> is the default value and means the model can
|
|
132
|
+
pick between generating a message or calling a tool. Specifying a particular tool like
|
|
133
|
+
<code>{"type": "TOOL_TYPE"}</code> forces the model to call that tool.</dd>
|
|
134
|
+
|
|
135
|
+
<dt class="optional">
|
|
136
|
+
parallel_tool_calls
|
|
137
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-parallel_tool_calls"
|
|
138
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
139
|
+
<span class="property-type">boolean</span>
|
|
140
|
+
</dt>
|
|
141
|
+
<dd>Whether to enable parallel function calling during tool use.</dd>
|
|
142
|
+
|
|
143
|
+
<dt class="optional">
|
|
144
|
+
response_format
|
|
145
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-response_format"
|
|
146
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
147
|
+
<span class="property-type">string | object</span>
|
|
148
|
+
</dt>
|
|
149
|
+
<dd>Specifies the format that the model must output.</dd>
|
|
150
|
+
|
|
151
|
+
</dl>
|
|
152
|
+
|
|
153
|
+
<h4 style="font-weight: bolder;"> ⋙ List Runs</h4>
|
|
154
|
+
<p>Returns a list of runs belonging to a thread.</p>
|
|
155
|
+
<dl class="message-properties">
|
|
156
|
+
<h4>msg.payload Properties</h4>
|
|
157
|
+
|
|
158
|
+
<dt>
|
|
159
|
+
thread_id
|
|
160
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRuns#runs-listruns-thread_id"
|
|
161
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
162
|
+
<span class="property-type">string</span>
|
|
163
|
+
</dt>
|
|
164
|
+
<dd>The ID of the thread the run belongs to.</dd>
|
|
165
|
+
<dt class="optional">
|
|
166
|
+
limit
|
|
167
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRuns#runs-listruns-limit"
|
|
168
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
169
|
+
<span class="property-type">integer</span>
|
|
170
|
+
</dt>
|
|
171
|
+
<dd>A limit on the number of objects to be returned.</dd>
|
|
172
|
+
<dt class="optional">
|
|
173
|
+
order
|
|
174
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRuns#runs-listruns-order"
|
|
175
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
176
|
+
<span class="property-type">string</span>
|
|
177
|
+
</dt>
|
|
178
|
+
<dd>Sort order by the created_at timestamp of the objects.</dd>
|
|
179
|
+
<dt class="optional">
|
|
180
|
+
after
|
|
181
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRuns#runs-listruns-after"
|
|
182
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
183
|
+
<span class="property-type">string</span>
|
|
184
|
+
</dt>
|
|
185
|
+
<dd>A cursor for use in pagination.</dd>
|
|
186
|
+
<dt class="optional">
|
|
187
|
+
before
|
|
188
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRuns#runs-listruns-before"
|
|
189
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
190
|
+
<span class="property-type">string</span>
|
|
191
|
+
</dt>
|
|
192
|
+
<dd>A cursor for use in pagination.</dd>
|
|
193
|
+
</dl>
|
|
194
|
+
|
|
195
|
+
<h4 style="font-weight: bolder;"> ⋙ Create Run</h4>
|
|
196
|
+
<p>Create a run.</p>
|
|
197
|
+
<dl class="message-properties">
|
|
198
|
+
<h4>msg.payload Properties</h4>
|
|
199
|
+
|
|
200
|
+
<dt>
|
|
201
|
+
thread_id
|
|
202
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-thread_id"
|
|
203
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
204
|
+
<span class="property-type">string</span>
|
|
205
|
+
</dt>
|
|
206
|
+
<dd>The ID of the thread to run.</dd>
|
|
207
|
+
|
|
208
|
+
<dt>
|
|
209
|
+
include
|
|
210
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-include"
|
|
211
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
212
|
+
<span class="property-type">array</span>
|
|
213
|
+
</dt>
|
|
214
|
+
<dd>A list of additional fields to include in the response.</dd>
|
|
215
|
+
|
|
216
|
+
<dt>
|
|
217
|
+
assistant_id
|
|
218
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-assistant_id"
|
|
219
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
220
|
+
<span class="property-type">string</span>
|
|
221
|
+
</dt>
|
|
222
|
+
<dd>The ID of the assistant to use to execute this run.</dd>
|
|
223
|
+
<dt class="optional">
|
|
224
|
+
model
|
|
225
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-model"
|
|
226
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
227
|
+
<span class="property-type">string</span>
|
|
228
|
+
</dt>
|
|
229
|
+
<dd>The ID of the Model to be used to execute this run.</dd>
|
|
230
|
+
<dt class="optional">
|
|
231
|
+
instructions
|
|
232
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-instructions"
|
|
233
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
234
|
+
<span class="property-type">string</span>
|
|
235
|
+
</dt>
|
|
236
|
+
<dd>
|
|
237
|
+
Overrides the instructions of the assistant. This is useful for modifying the behavior on a per-run
|
|
238
|
+
basis.
|
|
239
|
+
</dd>
|
|
240
|
+
|
|
241
|
+
<dt class="optional">
|
|
242
|
+
additional_instructions
|
|
243
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-additional_instructions"
|
|
244
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
245
|
+
<span class="property-type">string</span>
|
|
246
|
+
</dt>
|
|
247
|
+
<dd>
|
|
248
|
+
Appends additional instructions at the end of the instructions for the run. This is useful for modifying
|
|
249
|
+
the behavior on a per-run basis without overriding other instructions.
|
|
250
|
+
</dd>
|
|
251
|
+
|
|
252
|
+
<dt class="optional">
|
|
253
|
+
additional_messages
|
|
254
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-additional_messages"
|
|
255
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
256
|
+
<span class="property-type">array</span>
|
|
257
|
+
</dt>
|
|
258
|
+
<dd>
|
|
259
|
+
Adds additional messages to the thread before creating the run.
|
|
260
|
+
</dd>
|
|
261
|
+
|
|
262
|
+
<dt class="optional">
|
|
263
|
+
tools
|
|
264
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-tools"
|
|
265
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
266
|
+
<span class="property-type">array</span>
|
|
267
|
+
</dt>
|
|
268
|
+
<dd>Override the tools the assistant can use for this run.</dd>
|
|
269
|
+
<dt class="optional">
|
|
270
|
+
metadata
|
|
271
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-metadata"
|
|
272
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
273
|
+
<span class="property-type">object</span>
|
|
274
|
+
</dt>
|
|
275
|
+
<dd>Set of 16 key-value pairs that can be attached to an object.</dd>
|
|
276
|
+
|
|
277
|
+
<dt class="optional">
|
|
278
|
+
temperature
|
|
279
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-temperature"
|
|
280
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
281
|
+
<span class="property-type">number</span>
|
|
282
|
+
</dt>
|
|
283
|
+
<dd>What sampling temperature to use, between 0 and 2.</dd>
|
|
284
|
+
|
|
285
|
+
<dt class="optional">
|
|
286
|
+
top_p
|
|
287
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-top_p"
|
|
288
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
289
|
+
<span class="property-type">number</span>
|
|
290
|
+
</dt>
|
|
291
|
+
<dd>An alternative to sampling with temperature, called nucleus sampling, where the model considers the
|
|
292
|
+
results of the tokens with top_p probability mass.</dd>
|
|
293
|
+
|
|
294
|
+
<dt class="optional">
|
|
295
|
+
stream
|
|
296
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-stream"
|
|
297
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
298
|
+
<span class="property-type">boolean</span>
|
|
299
|
+
</dt>
|
|
300
|
+
<dd>If true, returns a stream of events that happen during the Run as server-sent events, terminating when
|
|
301
|
+
the Run enters a terminal state with a data: [DONE] message.</dd>
|
|
302
|
+
|
|
303
|
+
<dt class="optional">
|
|
304
|
+
max_prompt_tokens
|
|
305
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-max_prompt_tokens"
|
|
306
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
307
|
+
<span class="property-type">integer</span>
|
|
308
|
+
</dt>
|
|
309
|
+
<dd>The maximum number of prompt tokens that may be used over the course of the run.</dd>
|
|
310
|
+
|
|
311
|
+
<dt class="optional">
|
|
312
|
+
max_completion_tokens
|
|
313
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-max_completion_tokens"
|
|
314
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
315
|
+
<span class="property-type">integer</span>
|
|
316
|
+
</dt>
|
|
317
|
+
<dd>The maximum number of completion tokens that may be used over the course of the run.</dd>
|
|
318
|
+
|
|
319
|
+
<dt class="optional">
|
|
320
|
+
truncation_strategy
|
|
321
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-truncation_strategy"
|
|
322
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
323
|
+
<span class="property-type">object</span>
|
|
324
|
+
</dt>
|
|
325
|
+
<dd>Controls for how a thread will be truncated prior to the run.</dd>
|
|
326
|
+
|
|
327
|
+
<dt class="optional">
|
|
328
|
+
tool_choice
|
|
329
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-tool_choice"
|
|
330
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
331
|
+
<span class="property-type">string or object</span>
|
|
332
|
+
</dt>
|
|
333
|
+
<dd>Controls for how a thread will be truncated prior to the run.</dd>
|
|
334
|
+
|
|
335
|
+
<dt class="optional">
|
|
336
|
+
parallel_tool_calls
|
|
337
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-parallel_tool_calls"
|
|
338
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
339
|
+
<span class="property-type">boolean</span>
|
|
340
|
+
</dt>
|
|
341
|
+
<dd>Whether to enable parallel function calling during tool use.</dd>
|
|
342
|
+
|
|
343
|
+
<dt class="optional">
|
|
344
|
+
response_format
|
|
345
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-response_format"
|
|
346
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
347
|
+
<span class="property-type">string or object</span>
|
|
348
|
+
</dt>
|
|
349
|
+
<dd>Specifies the format that the model must output.</dd>
|
|
350
|
+
|
|
351
|
+
</dl>
|
|
352
|
+
|
|
353
|
+
<h4 style="font-weight: bolder;"> ⋙ Retrieve Run</h4>
|
|
354
|
+
<p>Retrieves a run.</p>
|
|
355
|
+
<dl class="message-properties">
|
|
356
|
+
<h4>msg.payload Properties</h4>
|
|
357
|
+
|
|
358
|
+
<dt>thread_id
|
|
359
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRun#runs-getrun-thread_id"
|
|
360
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
361
|
+
<span class="property-type">string</span>
|
|
362
|
+
</dt>
|
|
363
|
+
<dd>The ID of the thread that was run.</dd>
|
|
364
|
+
|
|
365
|
+
<dt>run_id
|
|
366
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRun#runs-getrun-run_id"
|
|
367
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
368
|
+
<span class="property-type">string</span>
|
|
369
|
+
</dt>
|
|
370
|
+
<dd>The ID of the run to retrieve.</dd>
|
|
371
|
+
</dl>
|
|
372
|
+
|
|
373
|
+
<h4 style="font-weight: bolder;"> ⋙ Modify Run</h4>
|
|
374
|
+
<p>Modifies a run.</p>
|
|
375
|
+
<dl class="message-properties">
|
|
376
|
+
<h4>msg.payload Properties</h4>
|
|
377
|
+
|
|
378
|
+
<dt>
|
|
379
|
+
thread_id
|
|
380
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRun#runs-getrun-thread_id"
|
|
381
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
382
|
+
<span class="property-type">string</span>
|
|
383
|
+
</dt>
|
|
384
|
+
<dd>The ID of the thread that was run.</dd>
|
|
385
|
+
<dt>
|
|
386
|
+
run_id
|
|
387
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRun#runs-getrun-run_id"
|
|
388
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
389
|
+
<span class="property-type">string</span>
|
|
390
|
+
</dt>
|
|
391
|
+
<dd>The ID of the run to modify.</dd>
|
|
392
|
+
<dt class="optional">
|
|
393
|
+
metadata
|
|
394
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/modifyRun#runs-modifyrun-metadata"
|
|
395
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
396
|
+
<span class="property-type">object</span>
|
|
397
|
+
</dt>
|
|
398
|
+
<dd>Set of 16 key-value pairs that can be attached to an object.</dd>
|
|
399
|
+
</dl>
|
|
400
|
+
|
|
401
|
+
<h4 style="font-weight: bolder;"> ⋙ Submit Tool Outputs to Run</h4>
|
|
402
|
+
<p>
|
|
403
|
+
When a run has the `status: "requires_action"` and
|
|
404
|
+
`required_action.type` is `submit_tool_outputs`, this endpoint can be
|
|
405
|
+
used to submit the outputs from the tool calls once they're all
|
|
406
|
+
completed. All outputs must be submitted in a single request.
|
|
407
|
+
</p>
|
|
408
|
+
<dl class="message-properties">
|
|
409
|
+
<h4>msg.payload Properties</h4>
|
|
410
|
+
|
|
411
|
+
<dt>
|
|
412
|
+
thread_id
|
|
413
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/submitToolOutputs#runs-submittooloutputs-thread_id"
|
|
414
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
415
|
+
<span class="property-type">string</span>
|
|
416
|
+
</dt>
|
|
417
|
+
<dd>The ID of the thread to which this run belongs.</dd>
|
|
418
|
+
<dt>
|
|
419
|
+
run_id
|
|
420
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/submitToolOutputs#runs-submittooloutputs-run_id"
|
|
421
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
422
|
+
<span class="property-type">string</span>
|
|
423
|
+
</dt>
|
|
424
|
+
<dd>The ID of the run that requires the tool output submission.</dd>
|
|
425
|
+
|
|
426
|
+
<dt>
|
|
427
|
+
tool_outputs
|
|
428
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/submitToolOutputs#runs-submittooloutputs-tool_outputs"
|
|
429
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
430
|
+
<span class="property-type">array</span>
|
|
431
|
+
</dt>
|
|
432
|
+
<dd>A list of tools for which the outputs are being submitted.</dd>
|
|
433
|
+
|
|
434
|
+
<dt class="optional">
|
|
435
|
+
stream
|
|
436
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/submitToolOutputs#runs-submittooloutputs-stream"
|
|
437
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
438
|
+
<span class="property-type">boolean</span>
|
|
439
|
+
</dt>
|
|
440
|
+
<dd>If true, returns a stream of events that happen during the Run as server-sent events, terminating when
|
|
441
|
+
the Run enters a terminal state with a data: [DONE] message.</dd>
|
|
442
|
+
|
|
443
|
+
</dl>
|
|
444
|
+
|
|
445
|
+
<h4 style="font-weight: bolder;"> ⋙ Cancel Run</h4>
|
|
446
|
+
<p>Cancels a run that is `in_progress`.</p>
|
|
447
|
+
<dl class="message-properties">
|
|
448
|
+
<h4>msg.payload Properties</h4>
|
|
449
|
+
|
|
450
|
+
<dt>
|
|
451
|
+
thread_id
|
|
452
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/cancelRun#runs-cancelrun-thread_id"
|
|
453
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
454
|
+
<span class="property-type">string</span>
|
|
455
|
+
</dt>
|
|
456
|
+
<dd>The ID of the thread to which this run belongs.</dd>
|
|
457
|
+
<dt>
|
|
458
|
+
run_id
|
|
459
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/cancelRun#runs-cancelrun-run_id"
|
|
460
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
461
|
+
<span class="property-type">string</span>
|
|
462
|
+
</dt>
|
|
463
|
+
<dd>The ID of the run to cancel.</dd>
|
|
464
|
+
</dl>
|
|
465
|
+
|
|
466
|
+
<h4 style="font-weight: bolder;"> ⋙ List Run Steps</h4>
|
|
467
|
+
<p>Returns a list of run steps belonging to a run.</p>
|
|
468
|
+
<dl class="message-properties">
|
|
469
|
+
<h4>msg.payload Properties</h4>
|
|
470
|
+
|
|
471
|
+
<dt>
|
|
472
|
+
thread_id
|
|
473
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRunSteps#runs-listrunsteps-thread_id"
|
|
474
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
475
|
+
<span class="property-type">string</span>
|
|
476
|
+
</dt>
|
|
477
|
+
<dd>The ID of the thread the run and run steps belong to.</dd>
|
|
478
|
+
<dt>
|
|
479
|
+
run_id
|
|
480
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRunSteps#runs-listrunsteps-run_id"
|
|
481
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
482
|
+
<span class="property-type">string</span>
|
|
483
|
+
</dt>
|
|
484
|
+
<dd>The ID of the run the run steps belong to.</dd>
|
|
485
|
+
<dt class="optional">
|
|
486
|
+
limit
|
|
487
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRunSteps#runs-listrunsteps-limit"
|
|
488
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
489
|
+
<span class="property-type">integer</span>
|
|
490
|
+
</dt>
|
|
491
|
+
<dd>A limit on the number of objects to be returned.</dd>
|
|
492
|
+
<dt class="optional">
|
|
493
|
+
order
|
|
494
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRunSteps#runs-listrunsteps-order"
|
|
495
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
496
|
+
<span class="property-type">string</span>
|
|
497
|
+
</dt>
|
|
498
|
+
<dd>Sort order by the created_at timestamp of the objects.</dd>
|
|
499
|
+
<dt class="optional">
|
|
500
|
+
after
|
|
501
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRunSteps#runs-listrunsteps-after"
|
|
502
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
503
|
+
<span class="property-type">string</span>
|
|
504
|
+
</dt>
|
|
505
|
+
<dd>A cursor for use in pagination.</dd>
|
|
506
|
+
|
|
507
|
+
<dt class="optional">
|
|
508
|
+
before
|
|
509
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/listRunSteps#runs-listrunsteps-before"
|
|
510
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
511
|
+
<span class="property-type">string</span>
|
|
512
|
+
</dt>
|
|
513
|
+
<dd>A cursor for use in pagination.</dd>
|
|
514
|
+
|
|
515
|
+
<dt class="optional">
|
|
516
|
+
include
|
|
517
|
+
<a href="https://platform.openai.com/docs/api-reference/run-steps/listRunSteps#run-steps-listrunsteps-include"
|
|
518
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
519
|
+
<span class="property-type">array</span>
|
|
520
|
+
</dt>
|
|
521
|
+
<dd>A list of additional fields to include in the response.</dd>
|
|
522
|
+
</dl>
|
|
523
|
+
|
|
524
|
+
<h4 style="font-weight: bolder;"> ⋙ Retrieve Run Step</h4>
|
|
525
|
+
<p>Retrieves a run step.</p>
|
|
526
|
+
<dl class="message-properties">
|
|
527
|
+
<h4>msg.payload Properties</h4>
|
|
528
|
+
|
|
529
|
+
<dt>
|
|
530
|
+
thread_id
|
|
531
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRunStep#runs-getrunstep-thread_id"
|
|
532
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
533
|
+
<span class="property-type">string</span>
|
|
534
|
+
</dt>
|
|
535
|
+
<dd>The ID of the thread to which the run and run step belongs.</dd>
|
|
536
|
+
<dt>
|
|
537
|
+
run_id
|
|
538
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRunStep#runs-getrunstep-run_id"
|
|
539
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
540
|
+
<span class="property-type">string</span>
|
|
541
|
+
</dt>
|
|
542
|
+
<dd>The ID of the run to which the run step belongs.</dd>
|
|
543
|
+
|
|
544
|
+
<dt>
|
|
545
|
+
step_id
|
|
546
|
+
<a href="https://platform.openai.com/docs/api-reference/runs/getRunStep#runs-getrunstep-step_id"
|
|
547
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
548
|
+
<span class="property-type">string</span>
|
|
549
|
+
</dt>
|
|
550
|
+
<dd>The ID of the run step to retrieve.</dd>
|
|
551
|
+
|
|
552
|
+
<dt>
|
|
553
|
+
include
|
|
554
|
+
<a href="https://platform.openai.com/docs/api-reference/run-steps/getRunStep#run-steps-getrunstep-include"
|
|
555
|
+
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
556
|
+
<span class="property-type">array</span>
|
|
557
|
+
</dt>
|
|
558
|
+
<dd>A list of additional fields to include in the response.</dd>
|
|
559
|
+
|
|
560
|
+
</dl>
|
|
561
|
+
|
|
562
|
+
</details>
|
|
563
|
+
</section>
|