Class OpenAiOfficialChatRequestParameters
java.lang.Object
dev.langchain4j.model.chat.request.DefaultChatRequestParameters
dev.langchain4j.model.openaiofficial.OpenAiOfficialChatRequestParameters
- All Implemented Interfaces:
ChatRequestParameters
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a newChatRequestParametersby combining the current parameters with the specified ones.booleaninthashCode()metadata()Creates a newChatRequestParametersby combining the current parameters with the specified ones.Returnsprompt_cache_key, an optional string that steers routing so that related requests are more likely to hit a machine holding the cache entry.Returnsprompt_cache_options, supported bygpt-5.6and later.seed()store()user()Methods inherited from class DefaultChatRequestParameters
frequencyPenalty, maxOutputTokens, modelName, presencePenalty, responseFormat, stopSequences, temperature, toolChoice, toolSpecifications, topK, topP, toString
-
Field Details
-
EMPTY
-
-
Method Details
-
maxCompletionTokens
-
logitBias
-
parallelToolCalls
-
seed
-
user
-
store
-
metadata
-
serviceTier
-
promptCacheKey
Returnsprompt_cache_key, an optional string that steers routing so that related requests are more likely to hit a machine holding the cache entry.- Since:
- 1.21.0
-
promptCacheOptions
Returnsprompt_cache_options, supported bygpt-5.6and later.- Since:
- 1.21.0
-
reasoningEffort
-
overrideWith
Description copied from interface:ChatRequestParametersCreates a newChatRequestParametersby combining the current parameters with the specified ones. Values from the specified parameters override values from the current parameters when there is overlap. Neither the current nor the specifiedChatRequestParametersobjects are modified.Example:
Current parameters: temperature = 1.0 maxOutputTokens = 100 Specified parameters: temperature = 0.5 modelName = my-model Result: temperature = 0.5 // Overridden from specified maxOutputTokens = 100 // Preserved from current modelName = my-model // Added from specified
- Specified by:
overrideWithin interfaceChatRequestParameters- Overrides:
overrideWithin classDefaultChatRequestParameters- Parameters:
that- the parameters whose values will override the current ones- Returns:
- a new
ChatRequestParametersinstance combining both sets of parameters
-
defaultedBy
Description copied from interface:ChatRequestParametersCreates a newChatRequestParametersby combining the current parameters with the specified ones. Values from the current parameters take precedence over values from the specified parameters when there is overlap. Neither the current nor the specifiedChatRequestParametersobjects are modified.Example:
Current parameters: temperature = 1.0 maxOutputTokens = 100 Specified parameters: temperature = 0.5 modelName = my-model Result: temperature = 1.0 // Preserved from current maxOutputTokens = 100 // Preserved from current modelName = my-model // Added from specified
- Specified by:
defaultedByin interfaceChatRequestParameters- Overrides:
defaultedByin classDefaultChatRequestParameters- Parameters:
that- the parameters whose values will be used as a default for the current ones- Returns:
- a new
ChatRequestParametersinstance combining both sets of parameters
-
equals
- Overrides:
equalsin classDefaultChatRequestParameters
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultChatRequestParameters
-
builder
-