Class OpenAiImageOptions

java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiImageOptions
All Implemented Interfaces:
ImageOptions, ModelOptions

public class OpenAiImageOptions extends AbstractOpenAiOptions implements ImageOptions
Configuration information for the Image Model implementation using the OpenAI Java SDK.
Author:
Julien Dubois, Christian Tzolov, Mark Pollack
  • Field Details

    • DEFAULT_IMAGE_MODEL

      public static final String DEFAULT_IMAGE_MODEL
  • Constructor Details

    • OpenAiImageOptions

      protected OpenAiImageOptions(@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, @Nullable Integer n, @Nullable Integer width, @Nullable Integer height, @Nullable String quality, @Nullable String responseFormat, @Nullable String size, @Nullable String style, @Nullable String user)
  • Method Details