Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

14 rader
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. }