Class BedrockCohereChatOptions
java.lang.Object
org.springframework.ai.bedrock.cohere.BedrockCohereChatOptions
- All Implemented Interfaces:
ChatOptions
,ModelOptions
- Since:
- 0.8.0
- Author:
- Christian Tzolov, Thomas Vitale
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
copy()
static BedrockCohereChatOptions
fromOptions
(BedrockCohereChatOptions fromOptions) getModel()
getTopK()
getTopP()
void
void
setMaxTokens
(Integer maxTokens) void
setNumGenerations
(Integer numGenerations) void
setReturnLikelihoods
(CohereChatBedrockApi.CohereChatRequest.ReturnLikelihoods returnLikelihoods) void
setStopSequences
(List<String> stopSequences) void
setTemperature
(Double temperature) void
void
void
-
Constructor Details
-
BedrockCohereChatOptions
public BedrockCohereChatOptions()
-
-
Method Details
-
builder
-
getTemperature
- Specified by:
getTemperature
in interfaceChatOptions
-
setTemperature
-
getTopP
- Specified by:
getTopP
in interfaceChatOptions
-
setTopP
-
getTopK
- Specified by:
getTopK
in interfaceChatOptions
-
setTopK
-
getMaxTokens
- Specified by:
getMaxTokens
in interfaceChatOptions
-
setMaxTokens
-
getStopSequences
- Specified by:
getStopSequences
in interfaceChatOptions
-
setStopSequences
-
getReturnLikelihoods
-
setReturnLikelihoods
public void setReturnLikelihoods(CohereChatBedrockApi.CohereChatRequest.ReturnLikelihoods returnLikelihoods) -
getNumGenerations
-
setNumGenerations
-
getLogitBias
-
setLogitBias
-
getTruncate
-
setTruncate
-
getModel
- Specified by:
getModel
in interfaceChatOptions
-
getFrequencyPenalty
- Specified by:
getFrequencyPenalty
in interfaceChatOptions
-
getPresencePenalty
- Specified by:
getPresencePenalty
in interfaceChatOptions
-
copy
- Specified by:
copy
in interfaceChatOptions
-
fromOptions
-