maritaca-ai / maritalk-api

Code and documentation for the MariTalk API
https://docs.maritaca.ai
MIT License
244 stars 12 forks source link

Add count_tokens function #93

Closed hugoabonizio closed 1 month ago

hugoabonizio commented 1 month ago

This PR adds the count_tokens function to count the amount of tokens on a given string.

rodrigo-f-nogueira commented 1 month ago

Aproveitando, poderia modificar o README para contemplar essas alterações? https://github.com/maritaca-ai/maritalk-api?tab=readme-ov-file#como-saber-o-n%C3%BAmero-de-tokens-que-ser%C3%A3o-cobrados