fix: CountTokenInput

This commit is contained in:
CaIon 2024-03-26 18:21:38 +08:00
parent 2a345ae070
commit 3cf2f0d5cb

View File

@ -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) {