Hacker GitHub

← All repos

pamelafox/openai-messages-token-helper

View on GitHub ↗ ★ 34 Python

A utility library for dealing with token counting for messages sent to an LLM (currently OpenAI models only)

4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2024-06-18 · latest 2024-06-18

Mentions per year 4 mentions · busiest year 2024 (4)
20082026
  1. I grappled with that issue for https://github.com/pamelafox/openai-messages-token-helper as I wanted to be able to use it for a quick token check with SLMs as well, so I ended up adding a parameter "fallback_to_default" for developers to…
  2. I have a package here that includes calculation for images for OpenAI: https://github.com/pamelafox/openai-messages-token-helper
  3. I have a package here that includes calculation for images for OpenAI: https://github.com/pamelafox/openai-messages-token-helper
  4. …through the code. I developed this package so that I could count those sorts of calls as well: https://github.com/pamelafox/openai-messages-token-helper