Cainier / gpt-tokens

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

feat: export TokenPrice #56

Closed gengjiawen closed 2 weeks ago

gengjiawen commented 2 weeks ago

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

like tokenPrice.totalPrice(checkTokenModel, prompt_token, completion_tokens)

Cainier commented 2 weeks ago

Thank you for your submission