UNPKG

@inductiv/node-red-openai-api

Version:

Enhance your Node-RED projects with advanced AI capabilities.

87 lines (72 loc) 3.05 kB
<section> <details> <summary style="font-weight: bold;">🫙 Containers</summary> <a href="https://developers.openai.com/api/reference/typescript/resources/containers/" target="_blank">Official Documentation <i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <h4 style="font-weight: bolder;"> ⋙ Create Container</h4> <p>Create and manage containers for use with the Code Interpreter tool.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> name <span class="property-type">string</span> </dt> <dd>Name of the container to create.</dd> <dt class="optional"> expires_after <span class="property-type">object</span> </dt> <dd>Container expiration time in seconds relative to the 'anchor' time.</dd> <dt class="optional"> file_ids <span class="property-type">array</span> </dt> <dd>IDs of files to copy to the container.</dd> <dt class="optional"> network_policy <span class="property-type">object</span> </dt> <dd>Network policy settings for the container, such as allowlist mode and allowed domains.</dd> </dl> <h4 style="font-weight: bolder;"> ⋙ List Containers</h4> <p>List Containers</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt class="optional"> after <span class="property-type">string</span> </dt> <dd>A cursor for use in pagination. after is an object ID that defines your place in the list.</dd> <dt class="optional"> limit <span class="property-type">integer</span> </dt> <dd>A limit on the number of objects to be returned.</dd> <dt class="optional"> order <span class="property-type">string</span> </dt> <dd>Sort order by the created_at timestamp of the objects.</dd> </dl> <h4 style="font-weight: bolder;"> ⋙ Retrieve Container</h4> <p>Retrieve container.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> container_id <span class="property-type">string</span> </dt> <dd>The ID of the container to retrieve.</dd> </dl> <h4 style="font-weight: bolder;"> ⋙ Delete Container</h4> <p>Delete container.</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> container_id <span class="property-type">string</span> </dt> <dd>The ID of the container to delete.</dd> </dl> </details> </section>