Class OpenAiApi.Builder
java.lang.Object
org.springframework.ai.openai.api.OpenAiApi.Builder
- Enclosing class:
- OpenAiApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
completionsPath
(String completionsPath) embeddingsPath
(String embeddingsPath) responseErrorHandler
(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) restClientBuilder
(org.springframework.web.client.RestClient.Builder restClientBuilder) webClientBuilder
(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
apiKey
-
apiKey
-
headers
-
completionsPath
-
embeddingsPath
-
restClientBuilder
public OpenAiApi.Builder restClientBuilder(org.springframework.web.client.RestClient.Builder restClientBuilder) -
webClientBuilder
public OpenAiApi.Builder webClientBuilder(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) -
responseErrorHandler
public OpenAiApi.Builder responseErrorHandler(org.springframework.web.client.ResponseErrorHandler responseErrorHandler) -
build
-