You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
590 B

  1. package operation_setting
  2. import "github.com/QuantumNous/new-api/setting/config"
  3. // PlaygroundSetting Playground 配置
  4. type PlaygroundSetting struct {
  5. MutualExclusiveParams string `json:"mutual_exclusive_params"` // temperature/top_p 互斥的模型前缀列表,换行分隔
  6. }
  7. // 默认配置
  8. var playgroundSetting = PlaygroundSetting{
  9. MutualExclusiveParams: "",
  10. }
  11. func init() {
  12. config.GlobalConfig.Register("playground_setting", &playgroundSetting)
  13. }
  14. // GetPlaygroundSetting 获取 Playground 配置
  15. func GetPlaygroundSetting() *PlaygroundSetting {
  16. return &playgroundSetting
  17. }