Class OpenAiModerationApi

java.lang.Object
org.springframework.ai.openai.api.OpenAiModerationApi

public class OpenAiModerationApi extends Object
OpenAI Moderation API.
Author:
Ahmed Yousri, Ilayaperumal Gopinathan
See Also:
  • Field Details

  • Constructor Details

    • OpenAiModerationApi

      public OpenAiModerationApi(String baseUrl, ApiKey apiKey, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
      Create a new OpenAI Moderation API with the provided base URL.
      Parameters:
      baseUrl - the base URL for the OpenAI API.
      apiKey - OpenAI apiKey.
      restClientBuilder - the rest client builder to use.
  • Method Details