feat: 初步重构完成
This commit is contained in:
1 parent
1735981217
commit
436afe925e
30 files changed
+240
-195
No files matched your search
@@ -201,7 +201,7 @@ func CountTokenInput(input any, model string) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func countAudioToken(text string, model string) int {
|
||||
func CountAudioToken(text string, model string) int {
|
||||
if strings.HasPrefix(model, "tts") {
|
||||
return utf8.RuneCountInString(text)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user