Package org.springframework.ai.qianfan
Class QianFanChatOptions
java.lang.Object
org.springframework.ai.qianfan.QianFanChatOptions
- All Implemented Interfaces:
ChatOptions
,ModelOptions
QianFanChatOptions represents the options for performing chat completion using the
QianFan API. It provides methods to set and retrieve various options like model,
frequency penalty, max tokens, etc.
- Since:
- 1.0
- Author:
- Geng Rong
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QianFanChatOptions.Builder
builder()
copy()
boolean
static QianFanChatOptions
fromOptions
(QianFanChatOptions fromOptions) getModel()
getStop()
getTopK()
getTopP()
int
hashCode()
void
setFrequencyPenalty
(Double frequencyPenalty) void
setMaxTokens
(Integer maxTokens) void
void
setPresencePenalty
(Double presencePenalty) void
setResponseFormat
(QianFanApi.ChatCompletionRequest.ResponseFormat responseFormat) void
void
setStopSequences
(List<String> stopSequences) void
setTemperature
(Double temperature) void
-
Constructor Details
-
QianFanChatOptions
public QianFanChatOptions()
-
-
Method Details
-
builder
-
getModel
- Specified by:
getModel
in interfaceChatOptions
-
setModel
-
getFrequencyPenalty
- Specified by:
getFrequencyPenalty
in interfaceChatOptions
-
setFrequencyPenalty
-
getMaxTokens
- Specified by:
getMaxTokens
in interfaceChatOptions
-
setMaxTokens
-
getPresencePenalty
- Specified by:
getPresencePenalty
in interfaceChatOptions
-
setPresencePenalty
-
getResponseFormat
-
setResponseFormat
-
getStopSequences
- Specified by:
getStopSequences
in interfaceChatOptions
-
setStopSequences
-
getStop
-
setStop
-
getTemperature
- Specified by:
getTemperature
in interfaceChatOptions
-
setTemperature
-
getTopP
- Specified by:
getTopP
in interfaceChatOptions
-
setTopP
-
getTopK
- Specified by:
getTopK
in interfaceChatOptions
-
hashCode
public int hashCode() -
equals
-
copy
- Specified by:
copy
in interfaceChatOptions
-
fromOptions
-