public class ModelParams extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModelParams() |
ModelParams(ModelParams source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Float |
getFrequencyPenalty()
Get 频率惩罚
|
Long |
getMaxTokens()
Get 最大输出长度
|
Float |
getPresencePenalty()
Get 存在惩罚
|
Float |
getRepetitionPenalty()
Get 重复惩罚
|
String |
getReplyFormat()
Get 输出格式
|
Long |
getSeed()
Get 随机种子
|
String[] |
getStopSequences()
Get 停止序列
|
Float |
getTemperature()
Get 温度
|
Float |
getTopP()
Get Top_P
|
void |
setFrequencyPenalty(Float FrequencyPenalty)
Set 频率惩罚
|
void |
setMaxTokens(Long MaxTokens)
Set 最大输出长度
|
void |
setPresencePenalty(Float PresencePenalty)
Set 存在惩罚
|
void |
setRepetitionPenalty(Float RepetitionPenalty)
Set 重复惩罚
|
void |
setReplyFormat(String ReplyFormat)
Set 输出格式
|
void |
setSeed(Long Seed)
Set 随机种子
|
void |
setStopSequences(String[] StopSequences)
Set 停止序列
|
void |
setTemperature(Float Temperature)
Set 温度
|
void |
setTopP(Float TopP)
Set Top_P
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModelParams()
public ModelParams(ModelParams source)
public Float getTemperature()
public void setTemperature(Float Temperature)
Temperature
- 温度public Float getTopP()
public void setTopP(Float TopP)
TopP
- Top_Ppublic Long getSeed()
public void setSeed(Long Seed)
Seed
- 随机种子public Float getPresencePenalty()
public void setPresencePenalty(Float PresencePenalty)
PresencePenalty
- 存在惩罚public Float getFrequencyPenalty()
public void setFrequencyPenalty(Float FrequencyPenalty)
FrequencyPenalty
- 频率惩罚public Float getRepetitionPenalty()
public void setRepetitionPenalty(Float RepetitionPenalty)
RepetitionPenalty
- 重复惩罚public Long getMaxTokens()
public void setMaxTokens(Long MaxTokens)
MaxTokens
- 最大输出长度public String[] getStopSequences()
public void setStopSequences(String[] StopSequences)
StopSequences
- 停止序列public String getReplyFormat()
public void setReplyFormat(String ReplyFormat)
ReplyFormat
- 输出格式Copyright © 2025. All rights reserved.