SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Function buildAzureContentSafetyFilter

    • Convenience function to build Azure content filter.

      Type Parameters

      • T extends ConfigType

      Parameters

      • type: T

        Type of the filter, either 'input' or 'output'.

      • Optionalconfig: AzureContentSafetyFilterParameters<T>

        Configuration for Azure content safety filter. If skipped, the default configuration of ALLOW_SAFE_LOW is used for all filter categories.

      Returns AzureContentSafetyFilterReturnType<T>

      Azure content safety configuration.

      "buildAzureContentSafetyFilter('input', { hate: 'ALLOW_SAFE', violence: 'ALLOW_SAFE_LOW_MEDIUM' })"
      

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.