OpenAI · Arazzo Workflow
OpenAI Moderate then Chat
Version 1.0.0
Screen user input with the moderation endpoint, then chat only if it is safe.
Provider
Workflows
moderate-then-chat
Moderate input text and create a chat completion only when it is allowed.
Classifies the user input for policy violations, and only when the content is not flagged does it forward the message to the chat completions endpoint.
1
moderate
createModeration
Classify the user input for policy violations.
2
createChat
createChatCompletion
Create a chat completion for the moderated, allowed user message.