Skip to main content

Parameters

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

  • access_key_id

    string


    required


    Aliyun access key ID.

  • access_key_secret

    string


    required


    Aliyun secret access key. The value is encrypted with AES before saving to etcd.

  • region_id

    string


    required


    Aliyun region ID.

  • endpoint

    string


    required


    Aliyun endpoint.

  • check_request

    boolean


    default: true


    If true, moderate the request content.

  • check_response

    boolean


    default: false


    If true, moderate the response content.

  • request_check_service

    string


    default: llm_query_moderation


    Location where Aliyun should moderation the requests.

  • request_check_length_limit

    number


    default: 2000


    Request content length limit, in character count. If exceeded, the content will be sent in chunks.

    For instance, if the request content has 250 characters and the request_check_length_limit is set to 100, then the content will be sent in 3 requests to Aliyun.

  • response_check_service

    string


    default: llm_response_moderation


    Location where Aliyun should moderation the responses.

  • response_check_length_limit

    number


    default: 5000


    Response content length limit, in character count. If exceeded, the content will be sent in chunks.

    For instance, if the response content has 250 characters and the response_check_length_limit is set to 100, then the content will be sent in 3 requests to Aliyun.

  • risk_level_bar

    string


    default: high


    vaild vaule:

    none, low, medium, high, or max


    If the evaluated risk level is lower than the risk_level_bar, the request/response will be passed through to upstream LLM / client respectively.

  • deny_code

    number


    default: 200


    Rejection HTTP status code.

  • deny_message

    integer


    default: 10000


    vaild vaule:

    greater than or equal to 1


    Rejection message.

  • timeout

    integer


    vaild vaule:

    between 1 and 10000 inclusive


    Timeout in milliseconds.

  • ssl_verify

    boolean


    required


    If true, enable SSL verification.

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