Drop-in LLM cost tracker, analyzer, and optimizer
Project description
token_purveyor
Drop-in LLM cost tracker, deduplicator, cluster analyzer, and optimizer. One line of setup.
import openai
from token_purveyor import CostAwareClient
client = CostAwareClient(openai.OpenAI())
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello"}],
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
token_purveyor-0.1.0.tar.gz
(32.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file token_purveyor-0.1.0.tar.gz.
File metadata
- Download URL: token_purveyor-0.1.0.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
846c1915178fefcc9f4cf7e0d285b9b37235d4d860b4798cf9ca118e36db82e1
|
|
| MD5 |
6c860a6696cc7b4d3edf0ad43e260746
|
|
| BLAKE2b-256 |
d515b31bcffa35db5e270398739393fcf0494c9de049e13487f47d3494aac65e
|
File details
Details for the file token_purveyor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: token_purveyor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f81cb90ef35c115e7de06c0fd25981573265d9b22aae5514841bf97eb76d8846
|
|
| MD5 |
dc81f2562042a39478a57f9089e1cf6f
|
|
| BLAKE2b-256 |
60df11515da1f926e89b08bdf65bb43adbe18512d05017eb6154040de877aea0
|