python-fastllm 0.0.42__tar.gz → 0.0.43__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 (28) hide show
  1. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/PKG-INFO +1 -1
  2. python_fastllm-0.0.43/fastllm/__init__.py +1 -0
  3. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/acomplete.py +2 -1
  4. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/types.py +7 -0
  5. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/python_fastllm.egg-info/PKG-INFO +1 -1
  6. python_fastllm-0.0.42/fastllm/__init__.py +0 -1
  7. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/README.md +0 -0
  8. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/_modidx.py +0 -0
  9. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/anthropic.py +0 -0
  10. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/chat.py +0 -0
  11. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/codex.py +0 -0
  12. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/gemini.py +0 -0
  13. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/openai_chat.py +0 -0
  14. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/openai_responses.py +0 -0
  15. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/specs/anthropic.json +0 -0
  16. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/specs/anthropic.yml +0 -0
  17. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/specs/gemini.json +0 -0
  18. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/specs/openai.with-code-samples.json +0 -0
  19. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/specs/openai.with-code-samples.yml +0 -0
  20. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/specs/spec_manifest.json +0 -0
  21. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/fastllm/streaming.py +0 -0
  22. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/pyproject.toml +0 -0
  23. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/python_fastllm.egg-info/SOURCES.txt +0 -0
  24. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/python_fastllm.egg-info/dependency_links.txt +0 -0
  25. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/python_fastllm.egg-info/entry_points.txt +0 -0
  26. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/python_fastllm.egg-info/requires.txt +0 -0
  27. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/python_fastllm.egg-info/top_level.txt +0 -0
  28. {python_fastllm-0.0.42 → python_fastllm-0.0.43}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.42
3
+ Version: 0.0.43
4
4
  Author-email: Kerem Turgutlu <keremturgutlu@gmail.com>
5
5
  License: Apache-2.0
6
6
  Project-URL: Repository, https://github.com/AnswerDotAI/fastllm
@@ -0,0 +1 @@
1
+ __version__ = "0.0.43"
@@ -47,7 +47,8 @@ vendor_mapping = {
47
47
  "fireworks_ai": ('openai_chat', "https://api.fireworks.ai/inference/v1", "FIREWORKS_API_KEY"),
48
48
  "qwen": ('openai_chat', "https://dashscope.aliyuncs.com/compatible-mode/v1", "QWEN_API_KEY"),
49
49
  "minimax": ('anthropic', "https://api.minimax.io/anthropic", "MINIMAX_API_KEY"),
50
- "meta_ai": ('openai', "https://api.meta.ai/v1", "META_API_KEY")
50
+ "meta_ai": ('openai', "https://api.meta.ai/v1", "META_API_KEY"),
51
+ "zai": ('openai_chat', "https://api.z.ai/api/paas/v4", "ZAI_API_KEY")
51
52
  }
52
53
 
53
54
  # %% ../nbs/06_acomplete.ipynb #77d27ea7
@@ -265,6 +265,13 @@ register_model_info('muse-spark-1.1', vendor_name='meta_ai', **modern_llm, max_i
265
265
  supports_vision=True, supports_image_input=True, supports_video_input=True, supports_pdf_input=True, supports_web_search=True,
266
266
  search_context_cost_per_query=0.0025, input_cost_per_token=1.25e-6, output_cost_per_token=4.25e-6, cache_read_input_token_cost=0.15e-6)
267
267
 
268
+ # %% ../nbs/00_types.ipynb #5a2b3430
269
+ # z.ai list pricing (a 50% discount applies until 2026-09-09)
270
+ register_model_info('glm-5.3-flash', vendor_name='zai', base='glm-5.1', **modern_llm,
271
+ supports_vision=True, supports_image_input=True,
272
+ max_input_tokens=1_000_000, max_output_tokens=128_000, max_tokens=128_000,
273
+ input_cost_per_token=0.15e-6, cache_read_input_token_cost=0.03e-6, output_cost_per_token=0.5e-6)
274
+
268
275
  # %% ../nbs/00_types.ipynb #2c23d11e
269
276
  codex_pricing = dict(input_cost_per_token = 0.10/1_000_000, output_cost_per_token = 0.50/1_000_000,
270
277
  cache_creation_input_token_cost = 0.10/1_000_000, cache_read_input_token_cost = 0.10/1_000_000)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.42
3
+ Version: 0.0.43
4
4
  Author-email: Kerem Turgutlu <keremturgutlu@gmail.com>
5
5
  License: Apache-2.0
6
6
  Project-URL: Repository, https://github.com/AnswerDotAI/fastllm
@@ -1 +0,0 @@
1
- __version__ = "0.0.42"