Class OpenAiModerationOptions

java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiModerationOptions
All Implemented Interfaces:
ModelOptions, ModerationOptions

public class OpenAiModerationOptions extends AbstractOpenAiOptions implements ModerationOptions
OpenAI SDK Moderation Options.
Author:
Ahmed Yousri, Ilayaperumal Gopinathan
  • Field Details

    • DEFAULT_MODERATION_MODEL

      public static final String DEFAULT_MODERATION_MODEL
      Default moderation model.
      See Also:
  • Constructor Details

    • OpenAiModerationOptions

      protected OpenAiModerationOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String,String> customHeaders)
  • Method Details