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 TypeMethodDescriptionbuild()headers(org.springframework.http.HttpHeaders headers) 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
-
restClientBuilder
public OpenAiImageApi.Builder restClientBuilder(org.springframework.web.client.RestClient.Builder restClientBuilder) -
responseErrorHandler
public OpenAiImageApi.Builder responseErrorHandler(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) -
build
-