Classifies if text and/or image inputs are potentially harmful. Learn more in the [moderation guide](/docs/guides/moderation).
Request body which must comply to the following JSON Schema:
{ "required" : [ "input" ], "type" : "object", "properties" : { "input" : { "description" : "Input (or inputs) to classify. Can be a single string, an array of strings, or\nan array of multi-modal input objects similar to other models.\n", "oneOf" : [ { "type" : "string", "description" : "A string of text to classify for moderation.", "example" : "I want to kill them.", "default" : "" }, { "type" : "array", "description" : "An array of strings to classify for moderation.", "items" : { "type" : "string", "example" : "I want to kill them.", "default" : "" } }, { "type" : "array", "description" : "An array of multi-modal inputs to the moderation model.", "items" : { "oneOf" : [ { "required" : [ "image_url", "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "Always `image_url`.", "enum" : [ "image_url" ] }, "image_url" : { "required" : [ "url" ], "type" : "object", "properties" : { "url" : { "type" : "string", "description" : "Either a URL of the image or the base64 encoded image data.", "format" : "uri", "example" : "https://example.com/image.jpg" } }, "description" : "Contains either an image URL or a data URL for a base64 encoded image." } }, "description" : "An object describing an image to classify." }, { "required" : [ "text", "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "Always `text`.", "enum" : [ "text" ] }, "text" : { "type" : "string", "description" : "A string of text to classify.", "example" : "I want to kill them" } }, "description" : "An object describing text to classify." } ], "x-oaiExpandable" : true } } ], "x-oaiExpandable" : true }, "model" : { "description" : "The content moderation model you would like to use. Learn more in\n[the moderation guide](/docs/guides/moderation), and learn about\navailable models [here](/docs/models/moderation).\n", "nullable" : false, "example" : "omni-moderation-2024-09-26", "anyOf" : [ { "type" : "string" }, { "type" : "string", "enum" : [ "omni-moderation-latest", "omni-moderation-2024-09-26", "text-moderation-latest", "text-moderation-stable" ] } ], "default" : "omni-moderation-latest", "x-oaiTypeLabel" : "string" } } }
Specify how the response should be mapped to the table output. The following formats are available:
Raw Response: Returns the raw response in a single row with the following columns:
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension OpenAI Nodes from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.