Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • aws_comprehend

    object


    required


    AWS Comprehend configurations.

    • access_key_id

      string


      required


      AWS access key ID.

    • secret_access_key

      string


      required


      AWS secret access key.

    • region

      string


      required


      AWS region.

    • endpoint

      string


      required


      AWS Comprehend service endpoint.

    • ssl_verify

      boolean


      required


      If true, enable TLS certificate verification.

  • moderation_categories

    object


    Key-value pairs of moderation category and their corresponding threshold.

    In each pair, the key should be one of the PROFANITY, HATE_SPEECH, INSULT, HARASSMENT_OR_ABUSE, SEXUAL, or VIOLENCE_OR_THREAT; and the threshold value should be between 0 and 1 (inclusive).

  • moderation_threshold

    number


    default: 0.5


    vaild vaule:

    between 0 and 1 inclusive


    Overall toxicity threshold. A higher value means more toxic content allowed.

    This option differs from the individual category thresholds in moderation_categories. For example, if moderation_categories is set with a PROFANITY threshold of 0.5, and a request has a PROFANITY score of 0.1, the request will not exceed the category threshold. However, if the request has other categories like SEXUAL or VIOLENCE_OR_THREAT exceeding the moderation_threshold, the request will be rejected.

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation