Cainier / gpt-tokens

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

feat: export TokenPrice #56

Closed gengjiawen closed 2 months ago

gengjiawen commented 2 months ago

this will allow user count token price when only provide token count

like tokenPrice.totalPrice(checkTokenModel, prompt_token, completion_tokens)

Cainier commented 2 months ago

Thank you for your submission