Interface ChatInputOptions

ChatInputOptions represents options for post and preprocessing the input.

interface ChatInputOptions {
    blockPromptInjection: boolean;
    factuality: boolean;
    pii: PIIs;
    piiReplaceMethod: ReplaceMethods;
    toxicity: boolean;
}

Properties

blockPromptInjection: boolean

blockPromptInjection represents the choice to run the blockPromptInjection algorithm.

factuality: boolean

factuality represents the choice to run the factuality algorithm.

pii: PIIs

pii represents the choice to run the repalce personal information algorithm and which one.

piiReplaceMethod: ReplaceMethods

piiReplaceMethod represents the method to use for PII.

toxicity: boolean

toxicity represents the choice to run the toxicity algorithm.