Commit 4a28a66c by CaIon

fix: CountTokenInput

parent 06f1e34e
......@@ -208,7 +208,7 @@ func CountTokenInput(input any, model string, check bool) (int, error, bool) {
}
return CountTokenText(text, model, check)
}
return 0, nil, false
return CountTokenInput(fmt.Sprintf("%v", input), model, check)
}
func CountAudioToken(text string, model string, check bool) (int, error, bool) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment