Class OpenAiOfficialChatModel.Builder
java.lang.Object
dev.langchain4j.model.openaiofficial.OpenAiOfficialChatModel.Builder
- Enclosing class:
OpenAiOfficialChatModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionazureDeploymentName(String azureDeploymentName) azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) build()credential(com.openai.credential.Credential credential) customHeaders(Map<String, String> customHeaders) defaultRequestParameters(ChatRequestParameters parameters) Sets default commonChatRequestParametersor OpenAI-specificOpenAiOfficialChatRequestParameters.frequencyPenalty(Double frequencyPenalty) isAzure(boolean isAzure) isGitHubModels(boolean isGitHubModels) listeners(List<ChatModelListener> listeners) maxCompletionTokens(Integer maxCompletionTokens) maxRetries(Integer maxRetries) modelName(com.openai.models.ChatModel modelName) openAIClient(com.openai.client.OpenAIClient openAIClient) organizationId(String organizationId) parallelToolCalls(Boolean parallelToolCalls) presencePenalty(Double presencePenalty) responseFormat(String responseFormat) serviceTier(String serviceTier) strictJsonSchema(Boolean strictJsonSchema) strictTools(Boolean strictTools) supportedCapabilities(Set<Capability> capabilities) temperature(Double temperature) tokenCountEstimator(TokenCountEstimator tokenCountEstimator)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultRequestParameters
Sets default commonChatRequestParametersor OpenAI-specificOpenAiOfficialChatRequestParameters.
When a parameter is set via an individual builder method (e.g.,modelName(String)), its value takes precedence over the same parameter set viaChatRequestParameters. -
modelName
-
modelName
-
baseUrl
-
apiKey
-
credential
-
azureDeploymentName
-
azureOpenAIServiceVersion
public OpenAiOfficialChatModel.Builder azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) -
organizationId
-
isGitHubModels
-
isAzure
-
openAIClient
-
temperature
-
topP
-
stop
-
maxCompletionTokens
-
presencePenalty
-
frequencyPenalty
-
logitBias
-
responseFormat
-
strictJsonSchema
-
seed
-
user
-
strictTools
-
parallelToolCalls
-
store
-
metadata
-
serviceTier
-
timeout
-
maxRetries
-
proxy
-
tokenCountEstimator
-
customHeaders
-
listeners
-
supportedCapabilities
-
build
-