类 DashscopeProperties
java.lang.Object
io.springboot.plugin.dashscope.config.DashscopeProperties
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
@Component
@ConfigurationProperties(prefix="dashscope")
public class DashscopeProperties
extends Object
implements org.springframework.beans.factory.InitializingBean
- 作者:
- lengleng
-
字段概要
字段修饰符和类型字段说明private StringDashScope API-KEYprivate boolean生成时,是否参考搜索的结果private int用于限制模型生成token的数量private String指明需要调用的模型private float用于控制模型生成时的重复度private String[text|message],默认为message,当为message时,输出参考message结果示例。private int生成时,随机数的种子,用于控制模型生成的随机性private float用于控制随机性和多样性的程度private double生成过程中核采样方法概率阈值 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
apiKey
DashScope API-KEY -
model
指明需要调用的模型 -
seed
private int seed生成时,随机数的种子,用于控制模型生成的随机性 -
topP
private double topP生成过程中核采样方法概率阈值 -
resultFormat
[text|message],默认为message,当为message时,输出参考message结果示例。推荐优先使用message格式 -
enableSearch
private boolean enableSearch生成时,是否参考搜索的结果 -
maxTokens
private int maxTokens用于限制模型生成token的数量 -
temperature
private float temperature用于控制随机性和多样性的程度 -
repetitionPenalty
private float repetitionPenalty用于控制模型生成时的重复度
-
-
构造器详细资料
-
DashscopeProperties
public DashscopeProperties()
-
-
方法详细资料
-
afterPropertiesSet
初始化key- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
Exception
-