python-fastllm 0.0.19__tar.gz → 0.0.21__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.19 → python_fastllm-0.0.21}/PKG-INFO +1 -1
  2. python_fastllm-0.0.21/fastllm/__init__.py +1 -0
  3. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/chat.py +2 -2
  4. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/types.py +9 -2
  5. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/python_fastllm.egg-info/PKG-INFO +1 -1
  6. python_fastllm-0.0.19/fastllm/__init__.py +0 -1
  7. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/README.md +0 -0
  8. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/_modidx.py +0 -0
  9. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/acomplete.py +0 -0
  10. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/anthropic.py +0 -0
  11. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/codex.py +0 -0
  12. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/gemini.py +0 -0
  13. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/openai_chat.py +0 -0
  14. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/openai_responses.py +0 -0
  15. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/specs/anthropic.json +0 -0
  16. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/specs/anthropic.yml +0 -0
  17. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/specs/gemini.json +0 -0
  18. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/specs/openai.with-code-samples.json +0 -0
  19. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/specs/openai.with-code-samples.yml +0 -0
  20. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/specs/spec_manifest.json +0 -0
  21. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/fastllm/streaming.py +0 -0
  22. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/pyproject.toml +0 -0
  23. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/python_fastllm.egg-info/SOURCES.txt +0 -0
  24. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/python_fastllm.egg-info/dependency_links.txt +0 -0
  25. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/python_fastllm.egg-info/entry_points.txt +0 -0
  26. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/python_fastllm.egg-info/requires.txt +0 -0
  27. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/python_fastllm.egg-info/top_level.txt +0 -0
  28. {python_fastllm-0.0.19 → python_fastllm-0.0.21}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.19
3
+ Version: 0.0.21
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.21"
@@ -116,7 +116,7 @@ re_token = re.compile(fr"^{re.escape(token_dtls_tag)}\n*<summary>.*?</summary>\n
116
116
  _fence_back = '`````'
117
117
  _fence_re = re.compile(f'^{_fence_back}(py|bash)\n(.*?)\n{_fence_back}$', re.DOTALL | re.MULTILINE)
118
118
  _result_re = re.compile(f'\n{_fence_back}result\n(.*?)\n{_fence_back}\n', re.DOTALL)
119
- _lang2tool = dict(py='pyrun', bash='bash')
119
+ _lang2tool = dict(py='python', bash='bash')
120
120
 
121
121
  class FenceToolStop:
122
122
  def __init__(self, langs): self.langs = langs
@@ -320,7 +320,7 @@ def _trunc_str(s, mx=2000, skip=10, replace="TRUNCATED"):
320
320
  if len(s)>2 and s[0]=='𝍁' and s[-1]=='𝍁':
321
321
  s = s[1:-1]
322
322
  if replace: return s
323
- if isinstance_str(s, ('FullResponse','Safe')): return s
323
+ if isinstance_str(s, ('FullResponse','Safe','PrettyString')): return s
324
324
  if len(s)<=mx: return s
325
325
  s = s[skip:mx-skip]
326
326
  ss = s.split(' ')
@@ -321,11 +321,18 @@ modern_llm = dict(supports_function_calling=True, supports_tool_choice=True, sup
321
321
  supports_reasoning=True, supports_response_schema=True, supports_system_messages=True)
322
322
 
323
323
  # %% ../nbs/00_types.ipynb #8261dcd0
324
- register_model_info('accounts/fireworks/models/qwen3p6-plus', vendor_name='fireworks_ai', **modern_llm,
325
- supports_vision=True,
324
+ register_model_info('accounts/fireworks/models/qwen3p7-plus', vendor_name='fireworks_ai', **modern_llm, supports_vision=True,
325
+ max_tokens=1000000, max_input_tokens=1000000, max_output_tokens=65536,
326
+ input_cost_per_token=0.4e-6, cache_read_input_token_cost=0.08e-6, output_cost_per_token=1.6e-6)
327
+
328
+ register_model_info('accounts/fireworks/models/qwen3p6-plus', vendor_name='fireworks_ai', **modern_llm, supports_vision=True,
326
329
  max_tokens=1000000, max_input_tokens=1000000, max_output_tokens=65536,
327
330
  input_cost_per_token=0.5e-6, cache_read_input_token_cost=0.1e-6, output_cost_per_token=3.0e-6)
328
331
 
332
+ register_model_info('accounts/fireworks/models/glm-5p2', vendor_name='fireworks_ai', **modern_llm, supports_vision=False,
333
+ max_tokens=1000000, max_input_tokens=1000000, max_output_tokens=65536,
334
+ input_cost_per_token=1.4e-6, cache_read_input_token_cost=0.26e-6, output_cost_per_token=4.4e-6)
335
+
329
336
  register_model_info('gemini-3.5-flash', vendor_name='gemini', base='gemini-3-flash-preview',
330
337
  input_cost_per_token=1.5e-6, output_cost_per_token=9e-6,
331
338
  output_cost_per_reasoning_token=9e-6, cache_read_input_token_cost=1.5e-7)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fastllm
3
- Version: 0.0.19
3
+ Version: 0.0.21
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.19"