Cainier / gpt-tokens

Calculate the token consumption and amount of openai gpt message
MIT License
104 stars 13 forks source link

Hotfix count error #17

Closed Cainier closed 1 year ago

Cainier commented 1 year ago

Fix the problem that the tokens of gpt-3.5 series models except gpt-3.5-turbo-0301 are incorrectly calculated due to the update of the openai model