Class OpenAiOfficialResponsesStreamingChatModel.Builder
java.lang.Object
dev.langchain4j.model.openaiofficial.OpenAiOfficialResponsesStreamingChatModel.Builder
- Enclosing class:
OpenAiOfficialResponsesStreamingChatModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()client(com.openai.client.OpenAIClient client) executorService(ExecutorService executorService) listeners(ChatModelListener... listeners) listeners(List<ChatModelListener> listeners) maxOutputTokens(Integer maxOutputTokens) maxToolCalls(Integer maxToolCalls) 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
-
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
-