openai-function-tokens
openai-function-tokens copied to clipboard
Predict the exact openai token usage of functions
Results
3
openai-function-tokens issues
Sort by
recently updated
recently updated
newest added
在文档中function_call即将被弃用
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...
First off: Great tool and saved me the headache of trying to trace the functions tokens myself. A final touch could to introduce an option to have a token estimator...