openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

[SUPPORT] Is the tiktoken calculation method of the 0613 model the same as the 0301 model?

Open quzard opened this issue 2 years ago • 2 comments
trafficstars

https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb

quzard avatar Jun 14 '23 05:06 quzard

based on usage.prompt_tokens and adjusting the constants, it seems to exactly match the calculation method for gpt-4-0314. i'd still like an official confirmation if possible though

averykhoo avatar Jun 14 '23 08:06 averykhoo

update: opened PR #511

averykhoo avatar Jun 15 '23 03:06 averykhoo

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Sep 14 '23 01:09 github-actions[bot]