tokenator 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tokenator-0.2.0 → tokenator-0.2.1}/PKG-INFO +2 -2
- {tokenator-0.2.0 → tokenator-0.2.1}/pyproject.toml +2 -2
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/usage.py +1 -1
- {tokenator-0.2.0 → tokenator-0.2.1}/LICENSE +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/README.md +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/__init__.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/anthropic/client_anthropic.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/anthropic/stream_interceptors.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/base_wrapper.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/create_migrations.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/gemini/__init__.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/gemini/client_gemini.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/gemini/stream_interceptors.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/env.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/script.py.mako +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/versions/f028b8155fed_adding_detailed_input_and_output_token_.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/versions/f6f1f2437513_initial_migration.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/models.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/openai/client_openai.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/openai/stream_interceptors.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/schemas.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/state.py +0 -0
- {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/utils.py +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "tokenator"
|
3
|
-
version = "0.2.
|
4
|
-
description = "Token usage tracking
|
3
|
+
version = "0.2.1"
|
4
|
+
description = "Token usage and cost tracking for LLMs"
|
5
5
|
authors = ["Ujjwal Maheshwari <ujjwalm29@gmail.com>"]
|
6
6
|
readme = "README.md"
|
7
7
|
license = "MIT"
|
@@ -54,7 +54,7 @@ class TokenUsageService:
|
|
54
54
|
prompt_audio=info.get("input_cost_per_audio_token"),
|
55
55
|
completion_audio=info.get("output_cost_per_audio_token"),
|
56
56
|
prompt_cached_input=info.get("cache_read_input_token_cost") or 0,
|
57
|
-
prompt_cached_creation=info.get("
|
57
|
+
prompt_cached_creation=info.get("cache_creation_input_token_cost")
|
58
58
|
or 0,
|
59
59
|
)
|
60
60
|
model_costs[model] = rate
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|