rubenselander/openai-function-tokens

Predict the exact openai token usage of functions

19
/ 100
Experimental

This tool helps AI application developers accurately predict how many OpenAI tokens their chat completions will consume, especially when using function calling. You provide your planned chat messages and function definitions, and it returns a precise token count. This allows developers to better manage API costs and optimize their prompts before deployment.

No commits in the last 6 months.

Use this if you are building applications with OpenAI's API and need to know the exact token cost of your chat completions, particularly when integrating function calling.

Not ideal if you are not developing with OpenAI's API or if you only need a rough estimate of token usage without considering functions.

AI-application-development OpenAI-API-management prompt-engineering cost-optimization token-estimation
No License Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 6 / 25
Maturity 8 / 25
Community 5 / 25

How are scores calculated?

Stars

19

Forks

1

Language

Python

License

Last pushed

Sep 20, 2023

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/rubenselander/openai-function-tokens"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.