Przeglądaj źródła

fix: CountTokenInput

CaIon 1 rok temu
rodzic
commit
3cf2f0d5cb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      service/token_counter.go

+ 1 - 1
service/token_counter.go

@@ -208,7 +208,7 @@ func CountTokenInput(input any, model string, check bool) (int, error, bool) {
 		}
 		return CountTokenText(text, model, check)
 	}
-	return 0, errors.New("unsupported input type"), false
+	return 0, nil, false
 }
 
 func CountAudioToken(text string, model string, check bool) (int, error, bool) {