Package dev.langchain4j.model.openai
Class OpenAiLanguageModel.OpenAiLanguageModelBuilder
java.lang.Object
dev.langchain4j.model.openai.OpenAiLanguageModel.OpenAiLanguageModelBuilder
- Enclosing class:
OpenAiLanguageModel
Builder class for constructing instances of
OpenAiLanguageModel
.
Provides a fluent interface to configure various parameters for the language model.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
customHeaders
(Map<String, String> customHeaders) logRequests
(Boolean logRequests) logResponses
(Boolean logResponses) maxRetries
(Integer maxRetries) modelName
(OpenAiLanguageModelName modelName) organizationId
(String organizationId) temperature
(Double temperature) toString()
-
Constructor Details
-
OpenAiLanguageModelBuilder
public OpenAiLanguageModelBuilder()
-
-
Method Details