@inductiv/node-red-openai-api
Version:
Enhance your Node-RED projects with advanced AI capabilities.
96 lines (79 loc) • 2.98 kB
HTML
<section>
<details>
<summary style="font-weight: bold;">☁️ Uploads</summary>
<a href="https://developers.openai.com/api/reference/typescript/resources/uploads/" target="_blank">Official Documentation
<i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
<h4 style="font-weight: bolder;"> ⋙ Create Upload</h4>
<p>Creates an intermediate Upload object that you can add Parts to. </p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
filename
<span class="property-type">string</span>
</dt>
<dd>The name of the file to upload.</dd>
<dt>
purpose
<span class="property-type">string</span>
</dt>
<dd>The intended purpose of the uploaded file.</dd>
<dt>
bytes
<span class="property-type">integer</span>
</dt>
<dd>The number of bytes in the file you are uploading.</dd>
<dt>
mime_type
<span class="property-type">integer</span>
</dt>
<dd>This must fall within the supported MIME types for your file purpose.</dd>
</dl>
<h4 style="font-weight: bolder;"> ⋙ Add Upload Part</h4>
<p>Adds a Part to an Upload object.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
upload_id
<span class="property-type">string</span>
</dt>
<dd>The ID of the Upload.</dd>
<dt>
data
<span class="property-type">file</span>
</dt>
<dd>The chunk of bytes for this Part.</dd>
</dl>
<h4 style="font-weight: bolder;"> ⋙ Complete Upload</h4>
<p>Completes the Upload.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
upload_id
<span class="property-type">string</span>
</dt>
<dd>
The ID of the Upload.
</dd>
<dt>
part_ids
<span class="property-type">array</span>
</dt>
<dd>The ordered list of Part IDs.</dd>
<dt>
md5
<span class="property-type">string</span>
</dt>
<dd>The optional md5 checksum for the file contents.</dd>
</dl>
<h4 style="font-weight: bolder;"> ⋙ Cancel Upload</h4>
<p>Cancels the Upload.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
upload_id
<span class="property-type">string</span>
</dt>
<dd>The ID of the Upload.</dd>
</dl>
</details>
</section>