openai-messages-token-helper

A helper library for estimating tokens used by messages sent through OpenAI Chat Completions API.

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install openai-messages-token-helper

Dependencies

Releases

Version Released Bullseye
Python 3.9
Bookworm
Python 3.11
Trixie
Python 3.13
Files
0.1.13 2025-12-29      
0.1.12 2025-08-14      
0.1.11 2025-01-10      
0.1.10 2024-08-09      
0.1.9 2024-08-08      
0.1.8 2024-08-02      
0.1.7 2024-08-02      
0.1.6 2024-08-02      
0.1.5 2024-06-04      
0.1.4 2024-05-14      
0.1.3 2024-05-02      
0.1.2 2024-05-02      
0.1.1 2024-05-02      
0.1.0 2024-05-02      
0.0.6 2024-04-24      
0.0.5 2024-04-24      
0.0.4 2024-04-21      

Issues with this package?

Page last updated 2026-02-28 10:39:57 UTC