Class OpenAiOfficialResponsesStreamingChatModel.Builder
java.lang.Object
dev.langchain4j.model.openaiofficial.OpenAiOfficialResponsesStreamingChatModel.Builder
- Enclosing class:
OpenAiOfficialResponsesStreamingChatModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionazureDeploymentName(String azureDeploymentName) Deprecated.azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) build()client(com.openai.client.OpenAIClient client) credential(com.openai.credential.Credential credential) customHeaders(Map<String, String> customHeaders) executorService(ExecutorService executorService) isAzure(boolean isAzure) Deprecated.UseisMicrosoftFoundry(boolean)insteadisGitHubModels(boolean isGitHubModels) isMicrosoftFoundry(boolean isMicrosoftFoundry) listeners(ChatModelListener... listeners) listeners(List<ChatModelListener> listeners) maxOutputTokens(Integer maxOutputTokens) maxRetries(Integer maxRetries) maxToolCalls(Integer maxToolCalls) microsoftFoundryDeploymentName(String microsoftFoundryDeploymentName) organizationId(String organizationId) parallelToolCalls(Boolean parallelToolCalls) previousResponseId(String previousResponseId) promptCacheKey(String promptCacheKey) promptCacheRetention(String promptCacheRetention) reasoningEffort(String reasoningEffort) safetyIdentifier(String safetyIdentifier) serviceTier(String serviceTier) When Enterprise Open AI subscription is used, service tier = "priority" puts requests into a faster pool.streamIncludeObfuscation(Boolean streamIncludeObfuscation) Sets whether to use strict mode for function calling.temperature(Double temperature) textVerbosity(String textVerbosity) topLogprobs(Integer topLogprobs) truncation(String truncation)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
apiKey
-
credential
public OpenAiOfficialResponsesStreamingChatModel.Builder credential(com.openai.credential.Credential credential) -
azureDeploymentName
@Deprecated public OpenAiOfficialResponsesStreamingChatModel.Builder azureDeploymentName(String azureDeploymentName) Deprecated.UsemicrosoftFoundryDeploymentName(String)instead -
microsoftFoundryDeploymentName
public OpenAiOfficialResponsesStreamingChatModel.Builder microsoftFoundryDeploymentName(String microsoftFoundryDeploymentName) -
azureOpenAIServiceVersion
public OpenAiOfficialResponsesStreamingChatModel.Builder azureOpenAIServiceVersion(com.openai.azure.AzureOpenAIServiceVersion azureOpenAIServiceVersion) -
organizationId
-
isAzure
Deprecated.UseisMicrosoftFoundry(boolean)instead -
isMicrosoftFoundry
public OpenAiOfficialResponsesStreamingChatModel.Builder isMicrosoftFoundry(boolean isMicrosoftFoundry) -
isGitHubModels
-
customHeaders
public OpenAiOfficialResponsesStreamingChatModel.Builder customHeaders(Map<String, String> customHeaders) -
timeout
-
maxRetries
-
proxy
-
client
public OpenAiOfficialResponsesStreamingChatModel.Builder client(com.openai.client.OpenAIClient client) -
modelName
-
temperature
-
topP
-
maxOutputTokens
-
maxToolCalls
-
parallelToolCalls
public OpenAiOfficialResponsesStreamingChatModel.Builder parallelToolCalls(Boolean parallelToolCalls) -
previousResponseId
public OpenAiOfficialResponsesStreamingChatModel.Builder previousResponseId(String previousResponseId) -
topLogprobs
-
truncation
-
include
-
serviceTier
When Enterprise Open AI subscription is used, service tier = "priority" puts requests into a faster pool. -
safetyIdentifier
-
promptCacheKey
-
promptCacheRetention
public OpenAiOfficialResponsesStreamingChatModel.Builder promptCacheRetention(String promptCacheRetention) -
reasoningEffort
-
textVerbosity
-
streamIncludeObfuscation
public OpenAiOfficialResponsesStreamingChatModel.Builder streamIncludeObfuscation(Boolean streamIncludeObfuscation) -
store
-
listeners
public OpenAiOfficialResponsesStreamingChatModel.Builder listeners(List<ChatModelListener> listeners) -
listeners
-
executorService
public OpenAiOfficialResponsesStreamingChatModel.Builder executorService(ExecutorService executorService) -
strict
Sets whether to use strict mode for function calling. Defaults to true.When strict mode is enabled, the schema will include "additionalProperties": false and "required" arrays with all property keys.
-
build
-
microsoftFoundryDeploymentName(String)instead