Uses of Class
dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
-
Uses of AzureOpenAiChatModel.Builder in dev.langchain4j.model.azure
Modifier and TypeMethodDescriptionSets the Azure OpenAI API key.static AzureOpenAiChatModel.Builder
AzureOpenAiChatModel.builder()
AzureOpenAiChatModel.Builder.customHeaders
(Map<String, String> customHeaders) AzureOpenAiChatModel.Builder.dataSources
(List<com.azure.ai.openai.models.AzureChatExtensionConfiguration> dataSources) AzureOpenAiChatModel.Builder.deploymentName
(String deploymentName) Sets the deployment name in Azure OpenAI.Sets the Azure OpenAI endpoint.AzureOpenAiChatModel.Builder.enhancements
(com.azure.ai.openai.models.AzureChatEnhancementConfiguration enhancements) AzureOpenAiChatModel.Builder.frequencyPenalty
(Double frequencyPenalty) AzureOpenAiChatModel.Builder.listeners
(List<ChatModelListener> listeners) AzureOpenAiChatModel.Builder.logRequestsAndResponses
(Boolean logRequestsAndResponses) AzureOpenAiChatModel.Builder.maxRetries
(Integer maxRetries) AzureOpenAiChatModel.Builder.nonAzureApiKey
(String nonAzureApiKey) Used to authenticate with the OpenAI service, instead of Azure OpenAI.AzureOpenAiChatModel.Builder.openAIClient
(com.azure.ai.openai.OpenAIClient openAIClient) Sets the Azure OpenAI client.AzureOpenAiChatModel.Builder.presencePenalty
(Double presencePenalty) AzureOpenAiChatModel.Builder.proxyOptions
(com.azure.core.http.ProxyOptions proxyOptions) AzureOpenAiChatModel.Builder.responseFormat
(com.azure.ai.openai.models.ChatCompletionsResponseFormat responseFormat) AzureOpenAiChatModel.Builder.serviceVersion
(String serviceVersion) Sets the Azure OpenAI API service version.AzureOpenAiChatModel.Builder.temperature
(Double temperature) AzureOpenAiChatModel.Builder.tokenCredential
(com.azure.core.credential.TokenCredential tokenCredential) Used to authenticate to Azure OpenAI with Azure Active Directory credentials.AzureOpenAiChatModel.Builder.userAgentSuffix
(String userAgentSuffix)