@inductiv/node-red-openai-api 1.103.0-patch.1 → 6.22.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 +165 -100
- package/examples/responses/mcp.json +1 -1
- package/lib.js +6917 -13226
- package/locales/en-US/node.json +48 -1
- package/node.html +1513 -962
- package/node.js +194 -54
- package/package.json +8 -7
- package/src/assistants/help.html +1 -77
- package/src/audio/help.html +1 -37
- package/src/batch/help.html +3 -17
- package/src/chat/help.html +11 -89
- package/src/container-files/help.html +1 -27
- package/src/containers/help.html +8 -18
- package/src/conversations/help.html +135 -0
- package/src/conversations/methods.js +73 -0
- package/src/conversations/template.html +10 -0
- package/src/embeddings/help.html +1 -11
- package/src/evals/help.html +249 -0
- package/src/evals/methods.js +114 -0
- package/src/evals/template.html +14 -0
- package/src/files/help.html +4 -17
- package/src/fine-tuning/help.html +1 -35
- package/src/images/help.html +1 -45
- package/src/lib.js +51 -1
- package/src/messages/help.html +1 -41
- package/src/models/help.html +1 -5
- package/src/moderations/help.html +1 -5
- package/src/node.html +126 -37
- package/src/realtime/help.html +129 -0
- package/src/realtime/methods.js +45 -0
- package/src/realtime/template.html +7 -0
- package/src/responses/help.html +203 -61
- package/src/responses/methods.js +49 -16
- package/src/responses/template.html +16 -1
- package/src/runs/help.html +1 -123
- package/src/skills/help.html +183 -0
- package/src/skills/methods.js +99 -0
- package/src/skills/template.html +13 -0
- package/src/threads/help.html +1 -15
- package/src/uploads/help.html +1 -21
- package/src/vector-store-file-batches/help.html +1 -27
- package/src/vector-store-file-batches/methods.js +1 -1
- package/src/vector-store-files/help.html +1 -25
- package/src/vector-store-files/methods.js +5 -2
- package/src/vector-stores/help.html +2 -31
- package/src/videos/help.html +113 -0
- package/src/videos/methods.js +50 -0
- package/src/videos/template.html +8 -0
- package/src/webhooks/help.html +61 -0
- package/src/webhooks/methods.js +40 -0
- package/src/webhooks/template.html +4 -0
- package/test/openai-methods-mapping.test.js +1220 -0
- package/test/openai-node-auth-routing.test.js +203 -0
- package/test/service-host-editor-template.test.js +53 -0
- package/test/service-host-node.test.js +182 -0
- package/test/services.test.js +147 -0
- package/test/utils.test.js +75 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
<section>
|
|
2
|
+
<details>
|
|
3
|
+
<summary style="font-weight: bold;">📊 Evals</summary>
|
|
4
|
+
<a href="https://developers.openai.com/api/reference/typescript/resources/evals/" target="_blank">Official Documentation
|
|
5
|
+
<i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
6
|
+
|
|
7
|
+
<h4 style="font-weight: bolder;"> ⋙ List Evals</h4>
|
|
8
|
+
<p>List evaluations for a project.</p>
|
|
9
|
+
<dl class="message-properties">
|
|
10
|
+
<h4>msg.payload Properties</h4>
|
|
11
|
+
<dt class="optional">
|
|
12
|
+
after
|
|
13
|
+
<span class="property-type">string</span>
|
|
14
|
+
</dt>
|
|
15
|
+
<dd>Pagination cursor for items after this id.</dd>
|
|
16
|
+
<dt class="optional">
|
|
17
|
+
limit
|
|
18
|
+
<span class="property-type">integer</span>
|
|
19
|
+
</dt>
|
|
20
|
+
<dd>Maximum number of evals to return.</dd>
|
|
21
|
+
<dt class="optional">
|
|
22
|
+
order
|
|
23
|
+
<span class="property-type">string</span>
|
|
24
|
+
</dt>
|
|
25
|
+
<dd>Sort order by creation time. Use <code>asc</code> or <code>desc</code>.</dd>
|
|
26
|
+
</dl>
|
|
27
|
+
|
|
28
|
+
<h4 style="font-weight: bolder;"> ⋙ Create Eval</h4>
|
|
29
|
+
<p>Create an eval definition with data source config and testing criteria.</p>
|
|
30
|
+
<dl class="message-properties">
|
|
31
|
+
<h4>msg.payload Properties</h4>
|
|
32
|
+
<dt>
|
|
33
|
+
name
|
|
34
|
+
<span class="property-type">string</span>
|
|
35
|
+
</dt>
|
|
36
|
+
<dd>The eval name.</dd>
|
|
37
|
+
<dt>
|
|
38
|
+
data_source_config
|
|
39
|
+
<span class="property-type">object</span>
|
|
40
|
+
</dt>
|
|
41
|
+
<dd>Data source config schema used by eval runs.</dd>
|
|
42
|
+
<dt>
|
|
43
|
+
testing_criteria
|
|
44
|
+
<span class="property-type">array</span>
|
|
45
|
+
</dt>
|
|
46
|
+
<dd>Grader criteria used to score results.</dd>
|
|
47
|
+
<dt class="optional">
|
|
48
|
+
metadata
|
|
49
|
+
<span class="property-type">object</span>
|
|
50
|
+
</dt>
|
|
51
|
+
<dd>Optional metadata key-value pairs.</dd>
|
|
52
|
+
</dl>
|
|
53
|
+
|
|
54
|
+
<h4 style="font-weight: bolder;"> ⋙ Retrieve Eval</h4>
|
|
55
|
+
<p>Retrieve an eval by id.</p>
|
|
56
|
+
<dl class="message-properties">
|
|
57
|
+
<h4>msg.payload Properties</h4>
|
|
58
|
+
<dt>
|
|
59
|
+
eval_id
|
|
60
|
+
<span class="property-type">string</span>
|
|
61
|
+
</dt>
|
|
62
|
+
<dd>The eval id.</dd>
|
|
63
|
+
</dl>
|
|
64
|
+
|
|
65
|
+
<h4 style="font-weight: bolder;"> ⋙ Modify Eval</h4>
|
|
66
|
+
<p>Update mutable eval fields.</p>
|
|
67
|
+
<dl class="message-properties">
|
|
68
|
+
<h4>msg.payload Properties</h4>
|
|
69
|
+
<dt>
|
|
70
|
+
eval_id
|
|
71
|
+
<span class="property-type">string</span>
|
|
72
|
+
</dt>
|
|
73
|
+
<dd>The eval id.</dd>
|
|
74
|
+
<dt class="optional">
|
|
75
|
+
name
|
|
76
|
+
<span class="property-type">string</span>
|
|
77
|
+
</dt>
|
|
78
|
+
<dd>Updated eval name.</dd>
|
|
79
|
+
<dt class="optional">
|
|
80
|
+
metadata
|
|
81
|
+
<span class="property-type">object</span>
|
|
82
|
+
</dt>
|
|
83
|
+
<dd>Updated metadata.</dd>
|
|
84
|
+
</dl>
|
|
85
|
+
|
|
86
|
+
<h4 style="font-weight: bolder;"> ⋙ Delete Eval</h4>
|
|
87
|
+
<p>Delete an eval by id.</p>
|
|
88
|
+
<dl class="message-properties">
|
|
89
|
+
<h4>msg.payload Properties</h4>
|
|
90
|
+
<dt>
|
|
91
|
+
eval_id
|
|
92
|
+
<span class="property-type">string</span>
|
|
93
|
+
</dt>
|
|
94
|
+
<dd>The eval id.</dd>
|
|
95
|
+
</dl>
|
|
96
|
+
|
|
97
|
+
<h4 style="font-weight: bolder;"> ⋙ List Eval Runs</h4>
|
|
98
|
+
<p>List runs for an eval.</p>
|
|
99
|
+
<dl class="message-properties">
|
|
100
|
+
<h4>msg.payload Properties</h4>
|
|
101
|
+
<dt>
|
|
102
|
+
eval_id
|
|
103
|
+
<span class="property-type">string</span>
|
|
104
|
+
</dt>
|
|
105
|
+
<dd>The eval id.</dd>
|
|
106
|
+
<dt class="optional">
|
|
107
|
+
after
|
|
108
|
+
<span class="property-type">string</span>
|
|
109
|
+
</dt>
|
|
110
|
+
<dd>Pagination cursor for items after this id.</dd>
|
|
111
|
+
<dt class="optional">
|
|
112
|
+
limit
|
|
113
|
+
<span class="property-type">integer</span>
|
|
114
|
+
</dt>
|
|
115
|
+
<dd>Maximum number of runs to return.</dd>
|
|
116
|
+
<dt class="optional">
|
|
117
|
+
order
|
|
118
|
+
<span class="property-type">string</span>
|
|
119
|
+
</dt>
|
|
120
|
+
<dd>Sort order by creation time. Use <code>asc</code> or <code>desc</code>.</dd>
|
|
121
|
+
</dl>
|
|
122
|
+
|
|
123
|
+
<h4 style="font-weight: bolder;"> ⋙ Create Eval Run</h4>
|
|
124
|
+
<p>Create a run for an eval.</p>
|
|
125
|
+
<dl class="message-properties">
|
|
126
|
+
<h4>msg.payload Properties</h4>
|
|
127
|
+
<dt>
|
|
128
|
+
eval_id
|
|
129
|
+
<span class="property-type">string</span>
|
|
130
|
+
</dt>
|
|
131
|
+
<dd>The eval id.</dd>
|
|
132
|
+
<dt>
|
|
133
|
+
data_source
|
|
134
|
+
<span class="property-type">object</span>
|
|
135
|
+
</dt>
|
|
136
|
+
<dd>Run data source config.</dd>
|
|
137
|
+
<dt class="optional">
|
|
138
|
+
model
|
|
139
|
+
<span class="property-type">string</span>
|
|
140
|
+
</dt>
|
|
141
|
+
<dd>Model used for the run when applicable.</dd>
|
|
142
|
+
<dt class="optional">
|
|
143
|
+
metadata
|
|
144
|
+
<span class="property-type">object</span>
|
|
145
|
+
</dt>
|
|
146
|
+
<dd>Optional run metadata.</dd>
|
|
147
|
+
<dt class="optional">
|
|
148
|
+
name
|
|
149
|
+
<span class="property-type">string</span>
|
|
150
|
+
</dt>
|
|
151
|
+
<dd>Optional run name.</dd>
|
|
152
|
+
</dl>
|
|
153
|
+
|
|
154
|
+
<h4 style="font-weight: bolder;"> ⋙ Retrieve Eval Run</h4>
|
|
155
|
+
<p>Retrieve a run by id.</p>
|
|
156
|
+
<dl class="message-properties">
|
|
157
|
+
<h4>msg.payload Properties</h4>
|
|
158
|
+
<dt>
|
|
159
|
+
eval_id
|
|
160
|
+
<span class="property-type">string</span>
|
|
161
|
+
</dt>
|
|
162
|
+
<dd>The eval id.</dd>
|
|
163
|
+
<dt>
|
|
164
|
+
run_id
|
|
165
|
+
<span class="property-type">string</span>
|
|
166
|
+
</dt>
|
|
167
|
+
<dd>The run id.</dd>
|
|
168
|
+
</dl>
|
|
169
|
+
|
|
170
|
+
<h4 style="font-weight: bolder;"> ⋙ Cancel Eval Run</h4>
|
|
171
|
+
<p>Cancel an in-progress eval run.</p>
|
|
172
|
+
<dl class="message-properties">
|
|
173
|
+
<h4>msg.payload Properties</h4>
|
|
174
|
+
<dt>
|
|
175
|
+
eval_id
|
|
176
|
+
<span class="property-type">string</span>
|
|
177
|
+
</dt>
|
|
178
|
+
<dd>The eval id.</dd>
|
|
179
|
+
<dt>
|
|
180
|
+
run_id
|
|
181
|
+
<span class="property-type">string</span>
|
|
182
|
+
</dt>
|
|
183
|
+
<dd>The run id.</dd>
|
|
184
|
+
</dl>
|
|
185
|
+
|
|
186
|
+
<h4 style="font-weight: bolder;"> ⋙ Delete Eval Run</h4>
|
|
187
|
+
<p>Delete an eval run.</p>
|
|
188
|
+
<dl class="message-properties">
|
|
189
|
+
<h4>msg.payload Properties</h4>
|
|
190
|
+
<dt>
|
|
191
|
+
eval_id
|
|
192
|
+
<span class="property-type">string</span>
|
|
193
|
+
</dt>
|
|
194
|
+
<dd>The eval id.</dd>
|
|
195
|
+
<dt>
|
|
196
|
+
run_id
|
|
197
|
+
<span class="property-type">string</span>
|
|
198
|
+
</dt>
|
|
199
|
+
<dd>The run id.</dd>
|
|
200
|
+
</dl>
|
|
201
|
+
|
|
202
|
+
<h4 style="font-weight: bolder;"> ⋙ List Eval Run Output Items</h4>
|
|
203
|
+
<p>List output items for a run.</p>
|
|
204
|
+
<dl class="message-properties">
|
|
205
|
+
<h4>msg.payload Properties</h4>
|
|
206
|
+
<dt>
|
|
207
|
+
eval_id
|
|
208
|
+
<span class="property-type">string</span>
|
|
209
|
+
</dt>
|
|
210
|
+
<dd>The eval id.</dd>
|
|
211
|
+
<dt>
|
|
212
|
+
run_id
|
|
213
|
+
<span class="property-type">string</span>
|
|
214
|
+
</dt>
|
|
215
|
+
<dd>The run id.</dd>
|
|
216
|
+
<dt class="optional">
|
|
217
|
+
after
|
|
218
|
+
<span class="property-type">string</span>
|
|
219
|
+
</dt>
|
|
220
|
+
<dd>Pagination cursor for items after this id.</dd>
|
|
221
|
+
<dt class="optional">
|
|
222
|
+
limit
|
|
223
|
+
<span class="property-type">integer</span>
|
|
224
|
+
</dt>
|
|
225
|
+
<dd>Maximum number of items to return.</dd>
|
|
226
|
+
</dl>
|
|
227
|
+
|
|
228
|
+
<h4 style="font-weight: bolder;"> ⋙ Retrieve Eval Run Output Item</h4>
|
|
229
|
+
<p>Retrieve one run output item by id.</p>
|
|
230
|
+
<dl class="message-properties">
|
|
231
|
+
<h4>msg.payload Properties</h4>
|
|
232
|
+
<dt>
|
|
233
|
+
eval_id
|
|
234
|
+
<span class="property-type">string</span>
|
|
235
|
+
</dt>
|
|
236
|
+
<dd>The eval id.</dd>
|
|
237
|
+
<dt>
|
|
238
|
+
run_id
|
|
239
|
+
<span class="property-type">string</span>
|
|
240
|
+
</dt>
|
|
241
|
+
<dd>The run id.</dd>
|
|
242
|
+
<dt>
|
|
243
|
+
output_item_id
|
|
244
|
+
<span class="property-type">string</span>
|
|
245
|
+
</dt>
|
|
246
|
+
<dd>The output item id.</dd>
|
|
247
|
+
</dl>
|
|
248
|
+
</details>
|
|
249
|
+
</section>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
const OpenAI = require("openai").OpenAI;
|
|
2
|
+
|
|
3
|
+
async function createEval(parameters) {
|
|
4
|
+
const openai = new OpenAI(this.clientParams);
|
|
5
|
+
const response = await openai.evals.create(parameters.payload);
|
|
6
|
+
return response;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
async function getEval(parameters) {
|
|
10
|
+
const openai = new OpenAI(this.clientParams);
|
|
11
|
+
const { eval_id, ...params } = parameters.payload;
|
|
12
|
+
const response = await openai.evals.retrieve(eval_id, params);
|
|
13
|
+
return response;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
async function modifyEval(parameters) {
|
|
17
|
+
const openai = new OpenAI(this.clientParams);
|
|
18
|
+
const { eval_id, ...body } = parameters.payload;
|
|
19
|
+
const response = await openai.evals.update(eval_id, body);
|
|
20
|
+
return response;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async function deleteEval(parameters) {
|
|
24
|
+
const openai = new OpenAI(this.clientParams);
|
|
25
|
+
const { eval_id, ...params } = parameters.payload;
|
|
26
|
+
const response = await openai.evals.delete(eval_id, params);
|
|
27
|
+
return response;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async function listEvals(parameters) {
|
|
31
|
+
const openai = new OpenAI(this.clientParams);
|
|
32
|
+
const list = await openai.evals.list(parameters.payload);
|
|
33
|
+
return [...list.data];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async function createEvalRun(parameters) {
|
|
37
|
+
const openai = new OpenAI(this.clientParams);
|
|
38
|
+
const { eval_id, ...body } = parameters.payload;
|
|
39
|
+
const response = await openai.evals.runs.create(eval_id, body);
|
|
40
|
+
return response;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async function getEvalRun(parameters) {
|
|
44
|
+
const openai = new OpenAI(this.clientParams);
|
|
45
|
+
const { eval_id, run_id, ...params } = parameters.payload;
|
|
46
|
+
const response = await openai.evals.runs.retrieve(run_id, {
|
|
47
|
+
eval_id,
|
|
48
|
+
...params,
|
|
49
|
+
});
|
|
50
|
+
return response;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function listEvalRuns(parameters) {
|
|
54
|
+
const openai = new OpenAI(this.clientParams);
|
|
55
|
+
const { eval_id, ...params } = parameters.payload;
|
|
56
|
+
const list = await openai.evals.runs.list(eval_id, params);
|
|
57
|
+
return [...list.data];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function deleteEvalRun(parameters) {
|
|
61
|
+
const openai = new OpenAI(this.clientParams);
|
|
62
|
+
const { eval_id, run_id, ...params } = parameters.payload;
|
|
63
|
+
const response = await openai.evals.runs.delete(run_id, {
|
|
64
|
+
eval_id,
|
|
65
|
+
...params,
|
|
66
|
+
});
|
|
67
|
+
return response;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async function cancelEvalRun(parameters) {
|
|
71
|
+
const openai = new OpenAI(this.clientParams);
|
|
72
|
+
const { eval_id, run_id, ...params } = parameters.payload;
|
|
73
|
+
const response = await openai.evals.runs.cancel(run_id, {
|
|
74
|
+
eval_id,
|
|
75
|
+
...params,
|
|
76
|
+
});
|
|
77
|
+
return response;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async function getEvalRunOutputItem(parameters) {
|
|
81
|
+
const openai = new OpenAI(this.clientParams);
|
|
82
|
+
const { eval_id, run_id, output_item_id, ...params } = parameters.payload;
|
|
83
|
+
const response = await openai.evals.runs.outputItems.retrieve(output_item_id, {
|
|
84
|
+
eval_id,
|
|
85
|
+
run_id,
|
|
86
|
+
...params,
|
|
87
|
+
});
|
|
88
|
+
return response;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
async function listEvalRunOutputItems(parameters) {
|
|
92
|
+
const openai = new OpenAI(this.clientParams);
|
|
93
|
+
const { eval_id, run_id, ...params } = parameters.payload;
|
|
94
|
+
const list = await openai.evals.runs.outputItems.list(run_id, {
|
|
95
|
+
eval_id,
|
|
96
|
+
...params,
|
|
97
|
+
});
|
|
98
|
+
return [...list.data];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
module.exports = {
|
|
102
|
+
createEval,
|
|
103
|
+
getEval,
|
|
104
|
+
modifyEval,
|
|
105
|
+
deleteEval,
|
|
106
|
+
listEvals,
|
|
107
|
+
createEvalRun,
|
|
108
|
+
getEvalRun,
|
|
109
|
+
listEvalRuns,
|
|
110
|
+
deleteEvalRun,
|
|
111
|
+
cancelEvalRun,
|
|
112
|
+
getEvalRunOutputItem,
|
|
113
|
+
listEvalRunOutputItems,
|
|
114
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<optgroup style="font-style: normal;" label="📊 Evals">
|
|
2
|
+
<option value="listEvals" data-i18n="OpenaiApi.parameters.listEvals"></option>
|
|
3
|
+
<option value="createEval" data-i18n="OpenaiApi.parameters.createEval"></option>
|
|
4
|
+
<option value="getEval" data-i18n="OpenaiApi.parameters.getEval"></option>
|
|
5
|
+
<option value="modifyEval" data-i18n="OpenaiApi.parameters.modifyEval"></option>
|
|
6
|
+
<option value="deleteEval" data-i18n="OpenaiApi.parameters.deleteEval"></option>
|
|
7
|
+
<option value="listEvalRuns" data-i18n="OpenaiApi.parameters.listEvalRuns"></option>
|
|
8
|
+
<option value="createEvalRun" data-i18n="OpenaiApi.parameters.createEvalRun"></option>
|
|
9
|
+
<option value="getEvalRun" data-i18n="OpenaiApi.parameters.getEvalRun"></option>
|
|
10
|
+
<option value="cancelEvalRun" data-i18n="OpenaiApi.parameters.cancelEvalRun"></option>
|
|
11
|
+
<option value="deleteEvalRun" data-i18n="OpenaiApi.parameters.deleteEvalRun"></option>
|
|
12
|
+
<option value="listEvalRunOutputItems" data-i18n="OpenaiApi.parameters.listEvalRunOutputItems"></option>
|
|
13
|
+
<option value="getEvalRunOutputItem" data-i18n="OpenaiApi.parameters.getEvalRunOutputItem"></option>
|
|
14
|
+
</optgroup>
|
package/src/files/help.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<section>
|
|
2
2
|
<details>
|
|
3
3
|
<summary style="font-weight: bold;">📁 Files</summary>
|
|
4
|
-
<a href="https://
|
|
4
|
+
<a href="https://developers.openai.com/api/reference/typescript/resources/files/" target="_blank">Official Documentation
|
|
5
5
|
<i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
6
6
|
<h4 style="font-weight: bolder;"> ⋙ List Files</h4>
|
|
7
7
|
<p>Returns a list of files that belong to the user's organization.</p>
|
|
@@ -10,32 +10,27 @@
|
|
|
10
10
|
|
|
11
11
|
<dt class="optional">
|
|
12
12
|
purpose
|
|
13
|
-
<a href="https://platform.openai.com/docs/api-reference/files/list#files-list-purpose"
|
|
14
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
15
13
|
<span class="property-type">string</span>
|
|
16
14
|
</dt>
|
|
17
15
|
<dd>Only return files with the given purpose.</dd>
|
|
18
16
|
|
|
19
17
|
<dt class="optional">
|
|
20
18
|
limit
|
|
21
|
-
|
|
22
|
-
class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
19
|
+
|
|
23
20
|
<span class="property-type">integer</span>
|
|
24
21
|
</dt>
|
|
25
22
|
<dd>A limit on the number of objects to be returned.</dd>
|
|
26
23
|
|
|
27
24
|
<dt class="optional">
|
|
28
25
|
order
|
|
29
|
-
|
|
30
|
-
class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
26
|
+
|
|
31
27
|
<span class="property-type">string</span>
|
|
32
28
|
</dt>
|
|
33
29
|
<dd>Sort order by the created_at timestamp of the objects.</dd>
|
|
34
30
|
|
|
35
31
|
<dt class="optional">
|
|
36
32
|
after
|
|
37
|
-
|
|
38
|
-
class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
33
|
+
|
|
39
34
|
<span class="property-type">string</span>
|
|
40
35
|
</dt>
|
|
41
36
|
<dd>A cursor for use in pagination.</dd>
|
|
@@ -47,15 +42,11 @@
|
|
|
47
42
|
|
|
48
43
|
<dt>
|
|
49
44
|
file
|
|
50
|
-
<a href="https://platform.openai.com/docs/api-reference/files/create#files-create-file"
|
|
51
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
52
45
|
<span class="property-type">file</span>
|
|
53
46
|
</dt>
|
|
54
47
|
<dd>Absolute path to the file that's being uploaded.</dd>
|
|
55
48
|
<dt>
|
|
56
49
|
purpose
|
|
57
|
-
<a href="https://platform.openai.com/docs/api-reference/files/create#files-create-purpose"
|
|
58
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
59
50
|
<span class="property-type">string</span>
|
|
60
51
|
</dt>
|
|
61
52
|
<dd>The intended purpose of the uploaded file.</dd>
|
|
@@ -77,8 +68,6 @@
|
|
|
77
68
|
|
|
78
69
|
<dt>
|
|
79
70
|
file_id
|
|
80
|
-
<a href="https://platform.openai.com/docs/api-reference/files/delete#files-delete-file_id"
|
|
81
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
82
71
|
<span class="property-type">string</span>
|
|
83
72
|
</dt>
|
|
84
73
|
<dd>The ID of the file to use for this request.</dd>
|
|
@@ -91,8 +80,6 @@
|
|
|
91
80
|
|
|
92
81
|
<dt>
|
|
93
82
|
file_id
|
|
94
|
-
<a href="https://platform.openai.com/docs/api-reference/files/retrieve-contents#files-retrieve-contents-file_id"
|
|
95
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
96
83
|
<span class="property-type">string</span>
|
|
97
84
|
</dt>
|
|
98
85
|
<dd>The ID of the file to use for this request.</dd>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<section>
|
|
2
2
|
<details>
|
|
3
3
|
<summary style="font-weight: bold;">🔧 Fine-tuning</summary>
|
|
4
|
-
<a href="https://
|
|
4
|
+
<a href="https://developers.openai.com/api/reference/typescript/resources/fine_tuning/" target="_blank">Official Documentation
|
|
5
5
|
<i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
6
6
|
<h4 style="font-weight: bolder;"> ⋙ Create Fine-tuning Job</h4>
|
|
7
7
|
<p>
|
|
@@ -14,23 +14,17 @@
|
|
|
14
14
|
|
|
15
15
|
<dt>
|
|
16
16
|
model
|
|
17
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-model"
|
|
18
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
19
17
|
<span class="property-type">string</span>
|
|
20
18
|
</dt>
|
|
21
19
|
<dd>The name of the model to fine-tune.</dd>
|
|
22
20
|
<dt>
|
|
23
21
|
training_file
|
|
24
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-training_file"
|
|
25
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
26
22
|
<span class="property-type">string</span>
|
|
27
23
|
</dt>
|
|
28
24
|
<dd>The ID of an uploaded file that contains training data.</dd>
|
|
29
25
|
|
|
30
26
|
<dt class="optional">
|
|
31
27
|
suffix
|
|
32
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-suffix"
|
|
33
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
34
28
|
<span class="property-type">string</span>
|
|
35
29
|
</dt>
|
|
36
30
|
<dd>
|
|
@@ -40,32 +34,24 @@
|
|
|
40
34
|
|
|
41
35
|
<dt class="optional">
|
|
42
36
|
validation_file
|
|
43
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-validation_file"
|
|
44
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
45
37
|
<span class="property-type">string</span>
|
|
46
38
|
</dt>
|
|
47
39
|
<dd>The ID of an uploaded file that contains validation data.</dd>
|
|
48
40
|
|
|
49
41
|
<dt class="optional">
|
|
50
42
|
integrations
|
|
51
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-integrations"
|
|
52
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
53
43
|
<span class="property-type">array</span>
|
|
54
44
|
</dt>
|
|
55
45
|
<dd>A list of integrations to enable for your fine-tuning job.</dd>
|
|
56
46
|
|
|
57
47
|
<dt class="optional">
|
|
58
48
|
seed
|
|
59
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-seed"
|
|
60
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
61
49
|
<span class="property-type">array</span>
|
|
62
50
|
</dt>
|
|
63
51
|
<dd>The seed controls the reproducibility of the job.</dd>
|
|
64
52
|
|
|
65
53
|
<dt class="optional">
|
|
66
54
|
method
|
|
67
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/create#fine-tuning-create-method"
|
|
68
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
69
55
|
<span class="property-type">object</span>
|
|
70
56
|
</dt>
|
|
71
57
|
<dd>The method used for fine-tuning.</dd>
|
|
@@ -79,15 +65,11 @@
|
|
|
79
65
|
|
|
80
66
|
<dt class="optional">
|
|
81
67
|
after
|
|
82
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list#fine-tuning-list-after"
|
|
83
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
84
68
|
<span class="property-type">string</span>
|
|
85
69
|
</dt>
|
|
86
70
|
<dd>Identifier for the last job from the previous pagination request.</dd>
|
|
87
71
|
<dt class="optional">
|
|
88
72
|
limit
|
|
89
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list#fine-tuning-list-limit"
|
|
90
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
91
73
|
<span class="property-type">integer</span>
|
|
92
74
|
</dt>
|
|
93
75
|
<dd>Number of fine-tuning jobs to retrieve.</dd>
|
|
@@ -100,8 +82,6 @@
|
|
|
100
82
|
|
|
101
83
|
<dt>
|
|
102
84
|
fine_tuning_job_id
|
|
103
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/retrieve#fine-tuning-retrieve-fine_tuning_job_id"
|
|
104
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
105
85
|
<span class="property-type">string</span>
|
|
106
86
|
</dt>
|
|
107
87
|
<dd>The ID of the fine-tuning job.</dd>
|
|
@@ -114,15 +94,11 @@
|
|
|
114
94
|
|
|
115
95
|
<dt>
|
|
116
96
|
fine_tuning_job_id
|
|
117
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list-events#fine-tuning-list-events-fine_tuning_job_id"
|
|
118
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
119
97
|
<span class="property-type">string</span>
|
|
120
98
|
</dt>
|
|
121
99
|
<dd>The ID of the fine-tuning job to get events for.</dd>
|
|
122
100
|
<dt class="optional">
|
|
123
101
|
after
|
|
124
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list-events#fine-tuning-list-events-after"
|
|
125
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
126
102
|
<span class="property-type">string</span>
|
|
127
103
|
</dt>
|
|
128
104
|
<dd>
|
|
@@ -130,8 +106,6 @@
|
|
|
130
106
|
</dd>
|
|
131
107
|
<dt class="optional">
|
|
132
108
|
limit
|
|
133
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list-events#fine-tuning-list-events-limit"
|
|
134
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
135
109
|
<span class="property-type">integer</span>
|
|
136
110
|
</dt>
|
|
137
111
|
<dd>Number of events to retrieve.</dd>
|
|
@@ -145,15 +119,11 @@
|
|
|
145
119
|
|
|
146
120
|
<dt>
|
|
147
121
|
fine_tuning_job_id
|
|
148
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list-checkpoints#fine-tuning-list-checkpoints-fine_tuning_job_id"
|
|
149
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
150
122
|
<span class="property-type">string</span>
|
|
151
123
|
</dt>
|
|
152
124
|
<dd>The ID of the fine-tuning job to get checkpoints for.</dd>
|
|
153
125
|
<dt class="optional">
|
|
154
126
|
after
|
|
155
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list-checkpoints#fine-tuning-list-checkpoints-after"
|
|
156
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
157
127
|
<span class="property-type">string</span>
|
|
158
128
|
</dt>
|
|
159
129
|
<dd>
|
|
@@ -161,8 +131,6 @@
|
|
|
161
131
|
</dd>
|
|
162
132
|
<dt class="optional">
|
|
163
133
|
limit
|
|
164
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/list-checkpoints#fine-tuning-list-checkpoints-limit"
|
|
165
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
166
134
|
<span class="property-type">integer</span>
|
|
167
135
|
</dt>
|
|
168
136
|
<dd>Number of events to retrieve.</dd>
|
|
@@ -176,8 +144,6 @@
|
|
|
176
144
|
|
|
177
145
|
<dt>
|
|
178
146
|
fine_tuning_job_id
|
|
179
|
-
<a href="https://platform.openai.com/docs/api-reference/fine-tuning/cancel#fine-tuning-cancel-fine_tuning_job_id"
|
|
180
|
-
target="_blank"><i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
|
|
181
147
|
<span class="property-type">string</span>
|
|
182
148
|
</dt>
|
|
183
149
|
<dd>The ID of the fine-tuning job to cancel.</dd>
|