@inductiv/node-red-openai-api
Version:
Enhance your Node-RED projects with advanced AI capabilities.
74 lines (64 loc) โข 2.59 kB
HTML
<section>
<details>
<summary style="font-weight: bold;">๐งต Threads</summary>
<a href="https://developers.openai.com/api/reference/typescript/resources/beta/threads/" target="_blank">Official Documentation
<i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a>
<h4 style="font-weight: bolder;"> โ Create Thread</h4>
<p>Create a thread.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt class="optional">
messages
<span class="property-type">array</span>
</dt>
<dd>A list of messages to start the thread with.</dd>
<dt class="optional">
tool_resources
<span class="property-type">array</span>
</dt>
<dd>A set of resources that are made available to the assistant's tools in this thread.</dd>
<dt class="optional">
metadata
<span class="property-type">object</span>
</dt>
<dd>Set of 16 key-value pairs that can be attached to an object.</dd>
</dl>
<h4 style="font-weight: bolder;"> โ Retrieve Thread</h4>
<p>Retrieves a thread.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
thread_id
<span class="property-type">string</span>
</dt>
<dd>The ID of the thread to retrieve.</dd>
</dl>
<h4 style="font-weight: bolder;"> โ Modify Thread</h4>
<p>Modifies a thread.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
thread_id
<span class="property-type">string</span>
</dt>
<dd>
The ID of the thread to modify. Only the metadata can be modified.
</dd>
<dt class="optional">
metadata
<span class="property-type">object</span>
</dt>
<dd>Set of 16 key-value pairs that can be attached to an object.</dd>
</dl>
<h4 style="font-weight: bolder;"> โ Delete Thread</h4>
<p>Delete a thread.</p>
<dl class="message-properties">
<h4>msg.payload Properties</h4>
<dt>
thread_id
<span class="property-type">string</span>
</dt>
<dd>The ID of the thread to delete.</dd>
</dl>
</details>
</section>