python-fastllm 0.0.69__tar.gz → 0.0.70__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 (23) hide show
  1. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/PKG-INFO +1 -1
  2. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/__init__.py +1 -1
  3. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/openai_chat.py +2 -2
  4. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/python_fastllm.egg-info/PKG-INFO +1 -1
  5. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/README.md +0 -0
  6. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/_modidx.py +0 -0
  7. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/acomplete.py +0 -0
  8. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/anthropic.py +0 -0
  9. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/chat.py +0 -0
  10. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/codex.py +0 -0
  11. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/gemini.py +0 -0
  12. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/model_prices.json +0 -0
  13. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/openai_responses.py +0 -0
  14. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/responses.py +0 -0
  15. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/streaming.py +0 -0
  16. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/fastllm/types.py +0 -0
  17. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/pyproject.toml +0 -0
  18. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/python_fastllm.egg-info/SOURCES.txt +0 -0
  19. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/python_fastllm.egg-info/dependency_links.txt +0 -0
  20. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/python_fastllm.egg-info/entry_points.txt +0 -0
  21. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/python_fastllm.egg-info/requires.txt +0 -0
  22. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/python_fastllm.egg-info/top_level.txt +0 -0
  23. {python_fastllm-0.0.69 → python_fastllm-0.0.70}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.69
3
+ Version: 0.0.70
4
4
  Author-email: Kerem Turgutlu <keremturgutlu@gmail.com>
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Repository, https://github.com/AnswerDotAI/fastllm
@@ -2,4 +2,4 @@
2
2
 
3
3
  - `fastllm.responses`: Provider-independent Responses resources and streaming over FastLLM"""
4
4
 
5
- __version__ = "0.0.69"
5
+ __version__ = "0.0.70"
@@ -236,8 +236,8 @@ def get_hdrs(api_key=None, oauth_token=None):
236
236
  def cost(usage, m):
237
237
  raw = usage.raw
238
238
  pd,cd = raw.get('prompt_tokens_details') or {},raw.get('completion_tokens_details') or {}
239
- cached = pd.get('cached_tokens', 0)
240
- in_audio, out_audio = pd.get('audio_tokens', 0), cd.get('audio_tokens', 0)
239
+ cached = pd.get('cached_tokens') or 0
240
+ in_audio, out_audio = pd.get('audio_tokens') or 0, cd.get('audio_tokens') or 0
241
241
  toks = dict(input_cost_per_token=raw['prompt_tokens'] - cached - in_audio, output_cost_per_token=raw['completion_tokens'] - out_audio,
242
242
  cache_read_input_token_cost=cached, input_cost_per_audio_token=in_audio, output_cost_per_audio_token=out_audio)
243
243
  tier = price_tier(m, raw['prompt_tokens'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.69
3
+ Version: 0.0.70
4
4
  Author-email: Kerem Turgutlu <keremturgutlu@gmail.com>
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Repository, https://github.com/AnswerDotAI/fastllm