feat: support DeepL's model (close #1126)

This commit is contained in:
JustSong
2024-04-27 13:37:22 +08:00
parent e64e7707a0
commit 007906216d
20 changed files with 305 additions and 10 deletions

View File

@@ -206,3 +206,7 @@ func CountTokenText(text string, model string) int {
tokenEncoder := getTokenEncoder(model)
return getTokenNum(tokenEncoder, text)
}
func CountToken(text string) int {
return CountTokenInput(text, "gpt-3.5-turbo")
}