mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-25 03:16:37 +08:00
fix: CountTokenInput
This commit is contained in:
parent
3cf2f0d5cb
commit
6114c9bb96
@ -208,7 +208,7 @@ func CountTokenInput(input any, model string, check bool) (int, error, bool) {
|
|||||||
}
|
}
|
||||||
return CountTokenText(text, model, check)
|
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) {
|
func CountAudioToken(text string, model string, check bool) (int, error, bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user