|
- package operation_setting
-
- import "github.com/QuantumNous/new-api/setting/config"
-
- // PlaygroundSetting Playground 配置
- type PlaygroundSetting struct {
- MutualExclusiveParams string `json:"mutual_exclusive_params"` // temperature/top_p 互斥的模型前缀列表,换行分隔
- }
-
- // 默认配置
- var playgroundSetting = PlaygroundSetting{
- MutualExclusiveParams: "deepseek-v4-flash\ndeepseek-v4-pro\ndeepseek-reasoner\no1-\no3-\no4-\ngpt-5",
- }
-
- func init() {
- config.GlobalConfig.Register("playground_setting", &playgroundSetting)
- }
-
- // GetPlaygroundSetting 获取 Playground 配置
- func GetPlaygroundSetting() *PlaygroundSetting {
- return &playgroundSetting
- }
|