UNPKG

@inductiv/node-red-openai-api

Version:

Enhance your Node-RED projects with advanced AI capabilities.

27 lines (25 loc) 1.03 kB
<section> <details> <summary style="font-weight: bold;">✅ Moderations</summary> <a href="https://developers.openai.com/api/reference/typescript/resources/moderations/" target="_blank">Official Documentation <i class="fa fa-external-link fa-sm" aria-hidden="true"></i></a> <h4 style="font-weight: bolder;"> ⋙ Create Moderation</h4> <p>Classifies if text violates OpenAI's Content Policy</p> <dl class="message-properties"> <h4>msg.payload Properties</h4> <dt> input <span class="property-type">string | array</span> </dt> <dd>The input text to classify</dd> <dt class="optional"> model <span class="property-type">string</span> </dt> <dd> Two content moderations models are available: text-moderation-stable and text-moderation-latest. </dd> </dl> </details> </section>