openai-function-tokens icon indicating copy to clipboard operation
openai-function-tokens copied to clipboard

Suggested functionality: Cost estimation

Open Somerandomguy10111 opened this issue 2 years ago • 1 comments

If you had a Tokenizer class, where the init takes as input the model_type you could also conceivably calculate the cost of a single API call by using a lookup table for the price per input/ouput tokens

Somerandomguy10111 avatar Oct 19 '23 11:10 Somerandomguy10111

Hey! Sorry for the late late late response. Only ever used github as a backup for private projects, never actually released anything before. Will get around to updating the package next week (hopefully) with the new API changes. Will try to include both of your suggested functionalities! Sorry for missing your issue posts, really makes me happy that someone found my work useful:)

rubenselander avatar Nov 20 '23 00:11 rubenselander