OpenAIModeratorOptions interface
Options for the OpenAI based moderator.
Properties
api |
OpenAI API key |
api |
Optional. Azure Content Safety API version. |
endpoint | Optional. OpenAI endpoint. |
model | Optional. OpenAI model to use. |
moderate | Which parts of the conversation to moderate. |
organization | Optional. OpenAI organization. |
Property Details
apiKey
OpenAI API key
apiKey: string
Property Value
string
apiVersion
Optional. Azure Content Safety API version.
apiVersion?: string
Property Value
string
endpoint
Optional. OpenAI endpoint.
endpoint?: string
Property Value
string
model
Optional. OpenAI model to use.
model?: string
Property Value
string
moderate
Which parts of the conversation to moderate.
moderate: "input" | "output" | "both"
Property Value
"input" | "output" | "both"
organization
Optional. OpenAI organization.
organization?: string
Property Value
string