25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

14 satır
317 B

  1. package ratio_setting
  2. import "strings"
  3. const CompactModelSuffix = "-openai-compact"
  4. const CompactWildcardModelKey = "*" + CompactModelSuffix
  5. func WithCompactModelSuffix(modelName string) string {
  6. if strings.HasSuffix(modelName, CompactModelSuffix) {
  7. return modelName
  8. }
  9. return modelName + CompactModelSuffix
  10. }