openai-function-tokens
openai-function-tokens copied to clipboard
Suggested functionality: Cost estimation
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
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:)