Class OpenAiImageApi.Builder
java.lang.Object
org.springframework.ai.openai.api.OpenAiImageApi.Builder
- Enclosing class:
- OpenAiImageApi
Builder to construct
OpenAiImageApi instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey(org.springframework.ai.model.ApiKey apiKey) build()imagesPath(String imagesPath) responseErrorHandler(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) restClientBuilder(org.springframework.web.client.RestClient.Builder restClientBuilder)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
imagesPath
-
apiKey
-
apiKey
-
headers
public OpenAiImageApi.Builder headers(org.springframework.util.MultiValueMap<String, String> headers) -
restClientBuilder
public OpenAiImageApi.Builder restClientBuilder(org.springframework.web.client.RestClient.Builder restClientBuilder) -
responseErrorHandler
public OpenAiImageApi.Builder responseErrorHandler(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) -
build
-