类 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
  • 字段详细资料

    • apiKey

      private String apiKey
      DashScope API-KEY
    • model

      private String model
      指明需要调用的模型
    • seed

      private int seed
      生成时,随机数的种子,用于控制模型生成的随机性
    • topP

      private double topP
      生成过程中核采样方法概率阈值
    • resultFormat

      private String 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

      public void afterPropertiesSet() throws Exception
      初始化key
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      Exception