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.
Files changed (24) hide show
  1. {tokenator-0.2.0 → tokenator-0.2.1}/PKG-INFO +2 -2
  2. {tokenator-0.2.0 → tokenator-0.2.1}/pyproject.toml +2 -2
  3. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/usage.py +1 -1
  4. {tokenator-0.2.0 → tokenator-0.2.1}/LICENSE +0 -0
  5. {tokenator-0.2.0 → tokenator-0.2.1}/README.md +0 -0
  6. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/__init__.py +0 -0
  7. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/anthropic/client_anthropic.py +0 -0
  8. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/anthropic/stream_interceptors.py +0 -0
  9. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/base_wrapper.py +0 -0
  10. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/create_migrations.py +0 -0
  11. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/gemini/__init__.py +0 -0
  12. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/gemini/client_gemini.py +0 -0
  13. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/gemini/stream_interceptors.py +0 -0
  14. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/env.py +0 -0
  15. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/script.py.mako +0 -0
  16. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/versions/f028b8155fed_adding_detailed_input_and_output_token_.py +0 -0
  17. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations/versions/f6f1f2437513_initial_migration.py +0 -0
  18. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/migrations.py +0 -0
  19. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/models.py +0 -0
  20. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/openai/client_openai.py +0 -0
  21. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/openai/stream_interceptors.py +0 -0
  22. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/schemas.py +0 -0
  23. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/state.py +0 -0
  24. {tokenator-0.2.0 → tokenator-0.2.1}/src/tokenator/utils.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tokenator
3
- Version: 0.2.0
4
- Summary: Token usage tracking wrapper for LLMs
3
+ Version: 0.2.1
4
+ Summary: Token usage and cost tracking for LLMs
5
5
  License: MIT
6
6
  Author: Ujjwal Maheshwari
7
7
  Author-email: ujjwalm29@gmail.com
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "tokenator"
3
- version = "0.2.0"
4
- description = "Token usage tracking wrapper for LLMs"
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("cache_read_creation_token_cost")
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