JoinTheAlliance / easycompletion

Easy OpenAI text completion and function calling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix / verify count_tokens count for function calls

lalalune opened this issue · comments

Function call count_tokens counts might not be correct, this needs to be tested

Tests should already be counting tokens. We need to make a function_completion which takes a function call and count the tokens for it.

https://community.openai.com/t/how-to-calculate-the-tokens-when-using-function-call/266573