Class DefaultChatOptions
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptions
- All Implemented Interfaces:
- ChatOptions,- ModelOptions
Default implementation for the 
ChatOptions.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.ai.chat.prompt.ChatOptionsChatOptions.Builder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T extends ChatOptions>
 Tcopy()Returns a copy of thisChatOptions.Returns the frequency penalty to use for the chat.Returns the maximum number of tokens to use for the chat.getModel()Returns the model to use for the chat.Returns the presence penalty to use for the chat.Returns the stop sequences to use for the chat.Returns the temperature to use for the chat.getTopK()Returns the top K to use for the chat.getTopP()Returns the top P to use for the chat.voidsetFrequencyPenalty(Double frequencyPenalty) voidsetMaxTokens(Integer maxTokens) voidvoidsetPresencePenalty(Double presencePenalty) voidsetStopSequences(List<String> stopSequences) voidsetTemperature(Double temperature) voidvoid
- 
Constructor Details- 
DefaultChatOptionspublic DefaultChatOptions()
 
- 
- 
Method Details- 
getModelDescription copied from interface:ChatOptionsReturns the model to use for the chat.- Specified by:
- getModelin interface- ChatOptions
- Returns:
- the model to use for the chat
 
- 
setModel
- 
getFrequencyPenaltyDescription copied from interface:ChatOptionsReturns the frequency penalty to use for the chat.- Specified by:
- getFrequencyPenaltyin interface- ChatOptions
- Returns:
- the frequency penalty to use for the chat
 
- 
setFrequencyPenalty
- 
getMaxTokensDescription copied from interface:ChatOptionsReturns the maximum number of tokens to use for the chat.- Specified by:
- getMaxTokensin interface- ChatOptions
- Returns:
- the maximum number of tokens to use for the chat
 
- 
setMaxTokens
- 
getPresencePenaltyDescription copied from interface:ChatOptionsReturns the presence penalty to use for the chat.- Specified by:
- getPresencePenaltyin interface- ChatOptions
- Returns:
- the presence penalty to use for the chat
 
- 
setPresencePenalty
- 
getStopSequencesDescription copied from interface:ChatOptionsReturns the stop sequences to use for the chat.- Specified by:
- getStopSequencesin interface- ChatOptions
- Returns:
- the stop sequences to use for the chat
 
- 
setStopSequences
- 
getTemperatureDescription copied from interface:ChatOptionsReturns the temperature to use for the chat.- Specified by:
- getTemperaturein interface- ChatOptions
- Returns:
- the temperature to use for the chat
 
- 
setTemperature
- 
getTopKDescription copied from interface:ChatOptionsReturns the top K to use for the chat.- Specified by:
- getTopKin interface- ChatOptions
- Returns:
- the top K to use for the chat
 
- 
setTopK
- 
getTopPDescription copied from interface:ChatOptionsReturns the top P to use for the chat.- Specified by:
- getTopPin interface- ChatOptions
- Returns:
- the top P to use for the chat
 
- 
setTopP
- 
copyDescription copied from interface:ChatOptionsReturns a copy of thisChatOptions.- Specified by:
- copyin interface- ChatOptions
- Returns:
- a copy of this ChatOptions
 
 
-