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.
 
 
 

25 rivejä
586 B

  1. package model_setting
  2. import "github.com/QuantumNous/new-api/setting/config"
  3. // GrokSettings defines Grok model configuration.
  4. type GrokSettings struct {
  5. ViolationDeductionEnabled bool `json:"violation_deduction_enabled"`
  6. ViolationDeductionAmount float64 `json:"violation_deduction_amount"`
  7. }
  8. var defaultGrokSettings = GrokSettings{
  9. ViolationDeductionEnabled: true,
  10. ViolationDeductionAmount: 0.05,
  11. }
  12. var grokSettings = defaultGrokSettings
  13. func init() {
  14. config.GlobalConfig.Register("grok", &grokSettings)
  15. }
  16. func GetGrokSettings() *GrokSettings {
  17. return &grokSettings
  18. }