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
20082026
-
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…
comment by pamelafox · 2024-06-18 · in Show HN: Token price calculator for 400+ LLMs -
I have a package here that includes calculation for images for OpenAI: https://github.com/pamelafox/openai-messages-token-helper
comment by pamelafox · 2024-06-18 · in Show HN: Token price calculator for 400+ LLMs -
I have a package here that includes calculation for images for OpenAI: https://github.com/pamelafox/openai-messages-token-helper
comment by pamelafox · 2024-06-18 · in Show HN: Token price calculator for 400+ LLMs -
…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
comment by pamelafox · 2024-06-18 · in Show HN: Token price calculator for 400+ LLMs