Class OpenAI.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.OpenAI.Builder
- Enclosing class:
- OpenAI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()httpClient(HttpClient httpClient) organization(String organization)
-
Constructor Details
-
Builder
-
-
Method Details
-
baseUrl
- Parameters:
baseUrl- the url which exposes the OpenAI API
-
organization
- Parameters:
organization- for users who belong to multiple organizations specify which organization will be used for the API requests
-
httpClient
- Parameters:
httpClient- a customHttpClientwhich will be used for the API requests
-
build
-