python-fastllm 0.0.17__tar.gz → 0.0.19__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.17 → python_fastllm-0.0.19}/PKG-INFO +1 -1
  2. python_fastllm-0.0.19/fastllm/__init__.py +1 -0
  3. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/chat.py +1 -1
  4. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/gemini.py +1 -0
  5. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/types.py +5 -0
  6. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/python_fastllm.egg-info/PKG-INFO +1 -1
  7. python_fastllm-0.0.17/fastllm/__init__.py +0 -1
  8. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/README.md +0 -0
  9. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/_modidx.py +0 -0
  10. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/acomplete.py +0 -0
  11. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/anthropic.py +0 -0
  12. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/codex.py +0 -0
  13. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/openai_chat.py +0 -0
  14. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/openai_responses.py +0 -0
  15. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/specs/anthropic.json +0 -0
  16. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/specs/anthropic.yml +0 -0
  17. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/specs/gemini.json +0 -0
  18. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/specs/openai.with-code-samples.json +0 -0
  19. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/specs/openai.with-code-samples.yml +0 -0
  20. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/specs/spec_manifest.json +0 -0
  21. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/fastllm/streaming.py +0 -0
  22. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/pyproject.toml +0 -0
  23. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/python_fastllm.egg-info/SOURCES.txt +0 -0
  24. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/python_fastllm.egg-info/dependency_links.txt +0 -0
  25. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/python_fastllm.egg-info/entry_points.txt +0 -0
  26. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/python_fastllm.egg-info/requires.txt +0 -0
  27. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/python_fastllm.egg-info/top_level.txt +0 -0
  28. {python_fastllm-0.0.17 → python_fastllm-0.0.19}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.17
3
+ Version: 0.0.19
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.19"
@@ -382,7 +382,7 @@ class AsyncChat:
382
382
  self,
383
383
  model:str, # LiteLLM compatible model name
384
384
  sp='', # System prompt
385
- temp=0, # Temperature
385
+ temp=None, # Temperature
386
386
  search=False, # Search (l,m,h), if model supports it
387
387
  tools:list=None, # Add tools
388
388
  hist:list=None, # Chat history
@@ -159,6 +159,7 @@ def denorm_tool_schs(tools):
159
159
  fn = fn_schema(t)
160
160
  if fn is None: other.append(t); continue
161
161
  name, desc, params = fn
162
+ params = {k:v for k,v in params.items() if k in _valid_gemini_sch}
162
163
  params['properties'] = {k:_gem_filter_sch(v) for k,v in params['properties'].items()}
163
164
  fn_decls.append(dict(name=name, description=desc, parameters=params))
164
165
  out = other[:]
@@ -347,6 +347,9 @@ register_model_info('accounts/fireworks/models/kimi-k2p6', vendor_name='firework
347
347
  supports_reasoning=True, supports_vision=True,
348
348
  input_cost_per_token=0.95e-6, cache_read_input_token_cost=0.16e-6, output_cost_per_token=4.0e-6)
349
349
 
350
+ register_model_info('kimi-k2.7-code', vendor_name='moonshot', base='kimi-k2.6',
351
+ input_cost_per_token=0.95e-6, cache_read_input_token_cost=0.19e-6, output_cost_per_token=4.0e-6)
352
+
350
353
  # %% ../nbs/00_types.ipynb #948d55d0
351
354
  deepseek_v4_common = dict(**modern_llm, supports_assistant_prefill=True,
352
355
  max_input_tokens=1048576, max_output_tokens=393216, max_tokens=393216)
@@ -365,6 +368,8 @@ register_model_info('mimo-v2.5-pro', vendor_name='mimo', **mimo_v25_common, base
365
368
  register_model_info('mimo-v2.5', vendor_name='mimo', **mimo_v25_common, base='deepseek-v4-pro', base_vendor_name='deepseek',
366
369
  input_cost_per_token=0.14e-6, output_cost_per_token=0.28e-6, cache_read_input_token_cost=0.0028e-6, search_context_cost_per_query=0.005,
367
370
  supports_vision=True, supports_image_input=True)
371
+ register_model_info('mimo-v2.5-pro-ultraspeed', vendor_name='mimo', **mimo_v25_common, base='deepseek-v4-pro', base_vendor_name='deepseek',
372
+ input_cost_per_token=1.305e-6, output_cost_per_token=2.61e-6, cache_read_input_token_cost=0.0108e-6, search_context_cost_per_query=0.005)
368
373
 
369
374
  # %% ../nbs/00_types.ipynb #defb1c5c
370
375
  register_model_info('MiniMax-M3', vendor_name='minimax', **modern_llm, max_input_tokens=512_000, max_output_tokens=512_000, max_tokens=512_000, input_cost_per_token=0.3e-6, output_cost_per_token=1.2e-6, cache_read_input_token_cost=0.06e-6, supports_vision=True, supports_video_input=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.17
3
+ Version: 0.0.19
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.17"