nexaai 1.0.21rc15__cp310-cp310-macosx_14_0_universal2.whl → 1.0.22rc1__cp310-cp310-macosx_14_0_universal2.whl

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.

Potentially problematic release.


This version of nexaai might be problematic. Click here for more details.

Binary file
nexaai/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is generated by CMake from _version.py.in
2
2
  # Do not modify this file manually - it will be overwritten
3
3
 
4
- __version__ = "1.0.21-rc15"
4
+ __version__ = "1.0.22-rc1"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -77,7 +77,7 @@ class PyBindLLMImpl(LLM):
77
77
  {"role": m["role"], "content": m["content"]}
78
78
  for m in messages
79
79
  ]
80
- return llm_bind.ml_llm_apply_chat_template(self._handle, message_dicts)
80
+ return llm_bind.ml_llm_apply_chat_template(self._handle, message_dicts, tools, enable_thinking)
81
81
 
82
82
  def generate_stream(self, prompt: str, g_cfg: GenerationConfig = GenerationConfig()) -> Generator[str, None, None]:
83
83
  """Generate text with streaming."""
@@ -1495,6 +1495,8 @@ def auto_download_model(func: Callable) -> Callable:
1495
1495
  token = None
1496
1496
  if 'token' in kwargs:
1497
1497
  token = kwargs.pop('token') # Remove from kwargs to avoid passing to original func
1498
+ if token is None or token == '':
1499
+ token = os.getenv('HF_TOKEN') or os.getenv('NEXA_HFTOKEN')
1498
1500
 
1499
1501
  # Handle name_or_path parameter
1500
1502
  name_or_path = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexaai
3
- Version: 1.0.21rc15
3
+ Version: 1.0.22rc1
4
4
  Summary: Python bindings for NexaSDK C-lib backend
5
5
  Author-email: "Nexa AI, Inc." <dev@nexa.ai>
6
6
  Project-URL: Homepage, https://github.com/NexaAI/nexasdk-bridge
@@ -1,6 +1,6 @@
1
1
  nexaai/__init__.py,sha256=gOd7sNsqEESopw_24xgnOSkIRENrk4Fa-RMtmVv62eA,2421
2
- nexaai/_stub.cpython-310-darwin.so,sha256=8WHFWTG5PwbeYuTN2lQLGm-CjGRgLY_aUGrNKrReyIo,66768
3
- nexaai/_version.py,sha256=4-M9S4CZaK-XUQfCxHd1CzTQipPDj8Qyc1KFXz9sMCU,144
2
+ nexaai/_stub.cpython-310-darwin.so,sha256=yEr1gmh9jDwXIAqlxEitT-FkJj8k3MLpd5o3mviHSaU,66768
3
+ nexaai/_version.py,sha256=0q2EJ4saciUBgJlIVBQ8zNjkiCdlgXu4L4drObmfDIE,143
4
4
  nexaai/asr.py,sha256=wqtq71cxIMGE4KvOIYZebHdWik8dy4LyKrDI98PDvzQ,2294
5
5
  nexaai/base.py,sha256=N8PRgDFA-XPku2vWnQIofQ7ipz3pPlO6f8YZGnuhquE,982
6
6
  nexaai/common.py,sha256=MRWZ6a7pnci_OUHxZRm3YqgKLAtZFD7b88STYDfeIF8,3460
@@ -21,17 +21,17 @@ nexaai/binds/__init__.py,sha256=2-Rr0NwyWygqwS8Xlxq0BJ2ltyID-WbGuzEYNlSanCI,155
21
21
  nexaai/binds/asr_bind.cpython-310-darwin.so,sha256=nr1BqGYRCooj2k5khaIvGG06_GrzudMXa9xa15UQ-88,200768
22
22
  nexaai/binds/common_bind.cpython-310-darwin.so,sha256=zxJuD0nSV--VZKxBfWZUavU7_bHj_JTi0FhkjvG4VJw,235264
23
23
  nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=nn3kINQUNyXIzmcU1olLg8RlkZYyIs_RtIlCk6OH1ds,202064
24
- nexaai/binds/libnexa_bridge.dylib,sha256=smNfXPTizAKNspcF9B64m_ZYgeb5M0tf8KFOT3hKQW0,291224
25
- nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=YShsXbe_n2N05joMmTnZXaXh9gM9LGdcmuWUxUc5plI,182784
24
+ nexaai/binds/libnexa_bridge.dylib,sha256=IpjBLzP2OBYPyx3btxmUoGMPvuMWpcbQ1NzSYcj4bOg,291224
25
+ nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=YP_GzIPBb4OMNmI-VMYgorx5g31oorcdBI3XQpi3jKI,182784
26
26
  nexaai/binds/rerank_bind.cpython-310-darwin.so,sha256=GJmffOLo9A48S_pMG2CtHyhbamtt97QikSSCXk3LqiM,183920
27
27
  nexaai/binds/vlm_bind.cpython-310-darwin.so,sha256=JEoQbyOkMXVK4WyBCqKBHbyXHtTiTWT18UkZMFvMh4k,182704
28
- nexaai/binds/cpu_gpu/libggml-base.dylib,sha256=hJFZ3UtMxpBe3QUOY45q4c0Fe4_-o_eTAOy4bfsCvxc,651424
29
- nexaai/binds/cpu_gpu/libggml-cpu.so,sha256=mAlMb5LOu6C7FzP3nqSkm-Xz_k9oJ-pplHvvHQg-QqY,694688
30
- nexaai/binds/cpu_gpu/libggml-metal.so,sha256=c1ettMDsBjV-qp1hGuN3qBSr-dvL1Dwr1ER2bg6JSS8,708992
31
- nexaai/binds/cpu_gpu/libggml.dylib,sha256=AUoIx9MkSAjbeVmkUIUCyJlg7zGKlpc9K8Y0BAfORqE,58640
32
- nexaai/binds/cpu_gpu/libmtmd.dylib,sha256=VlZHr5zAfsBWXtBvu_QbCwIguaLIwk3TFuY3E7nsBKI,606256
33
- nexaai/binds/cpu_gpu/libnexa_cpu_gpu.dylib,sha256=1QGW4aEoTNZBbUUNxwbX-Q_kOG4Bb_-XkJQx87Q8BTY,1826008
34
- nexaai/binds/cpu_gpu/libnexa_plugin.dylib,sha256=EYrKGVSAMBQfIC4Yl0lIAZgP6LRzMaVb_SMx3DteN48,1960456
28
+ nexaai/binds/cpu_gpu/libggml-base.dylib,sha256=9urbatWTB4QJ6uariOYlB_ZN1FFci5GaD8OfGZ9oPSQ,650736
29
+ nexaai/binds/cpu_gpu/libggml-cpu.so,sha256=qiYxbTe4Nt7n36zJVvq3zovgSZEmrN2is6gzTern7UI,677728
30
+ nexaai/binds/cpu_gpu/libggml-metal.so,sha256=zfaX7rIBYQazH2lf-vza007BMhPTK1ASd2T0HLLIA4E,673104
31
+ nexaai/binds/cpu_gpu/libggml.dylib,sha256=aOTj_6RrAMkfDO0ZI28_3nfcC-l4Y3dRCiS3C0d0_eI,58592
32
+ nexaai/binds/cpu_gpu/libmtmd.dylib,sha256=yfdSBV5McPAwGs9bRFHs9xSItFLEqc1NAnXBGBjumRU,605248
33
+ nexaai/binds/cpu_gpu/libnexa_cpu_gpu.dylib,sha256=IF4xdOSZJG83mjgVBD42M4IswXzT-6K7VenPvaxb3vs,1786136
34
+ nexaai/binds/cpu_gpu/libnexa_plugin.dylib,sha256=DVIggxoopUs_ipgCh3-wD5KR0zRles_QU7t18BE5lLA,1884184
35
35
  nexaai/binds/metal/libnexa_plugin.dylib,sha256=1qIA7R9FBOwg4JrJe84PpQJdKhIng2QZQYbthkF84hM,659304
36
36
  nexaai/binds/metal/py-lib/ml.py,sha256=DKXVOAfh8cg7KTKljh7jpcPwfQFNigc6uv_ZXF6lse8,23977
37
37
  nexaai/binds/metal/py-lib/profiling.py,sha256=Dc-mybFwBdCIKFWL7CbSHjkOJGAoYHG7r_e_XPhzwBU,9361
@@ -187,10 +187,10 @@ nexaai/binds/metal/py-lib/mlx_audio/tts/tests/test_interpolate.py,sha256=9dNmH03
187
187
  nexaai/binds/metal/py-lib/mlx_audio/tts/tests/test_models.py,sha256=12RiOfPtSZQj5g5JM-yCJk3uGQfM3OdmRiPt5uUDE4E,35096
188
188
  nexaai/binds/nexaml/libfftw3.3.dylib,sha256=Ul6NlZv0UhmXnnqAyFxCRCw-8pOsV5e4rc_9-wxrRJg,693424
189
189
  nexaai/binds/nexaml/libfftw3f.3.dylib,sha256=SKZE35Ly9R_nbMt7oWpObydvpK3HIo9-UhUA2KkeQyk,693920
190
- nexaai/binds/nexaml/libggml-base.dylib,sha256=hJFZ3UtMxpBe3QUOY45q4c0Fe4_-o_eTAOy4bfsCvxc,651424
191
- nexaai/binds/nexaml/libggml-cpu.so,sha256=mAlMb5LOu6C7FzP3nqSkm-Xz_k9oJ-pplHvvHQg-QqY,694688
192
- nexaai/binds/nexaml/libggml-metal.so,sha256=c1ettMDsBjV-qp1hGuN3qBSr-dvL1Dwr1ER2bg6JSS8,708992
193
- nexaai/binds/nexaml/libggml.dylib,sha256=AUoIx9MkSAjbeVmkUIUCyJlg7zGKlpc9K8Y0BAfORqE,58640
190
+ nexaai/binds/nexaml/libggml-base.dylib,sha256=9urbatWTB4QJ6uariOYlB_ZN1FFci5GaD8OfGZ9oPSQ,650736
191
+ nexaai/binds/nexaml/libggml-cpu.so,sha256=qiYxbTe4Nt7n36zJVvq3zovgSZEmrN2is6gzTern7UI,677728
192
+ nexaai/binds/nexaml/libggml-metal.so,sha256=zfaX7rIBYQazH2lf-vza007BMhPTK1ASd2T0HLLIA4E,673104
193
+ nexaai/binds/nexaml/libggml.dylib,sha256=aOTj_6RrAMkfDO0ZI28_3nfcC-l4Y3dRCiS3C0d0_eI,58592
194
194
  nexaai/binds/nexaml/libmp3lame.0.dylib,sha256=G-21u3MAZ2hiv1fbPEpOUGdToZfLtz2XI6BwW9xIqIA,305136
195
195
  nexaai/binds/nexaml/libmpg123.0.dylib,sha256=L4AgLcdcjGOQkEovUGDCNlH959500i0GkKBhqiHxBY4,306464
196
196
  nexaai/binds/nexaml/libnexa-mm-process.dylib,sha256=WCEgYK13YBfg-DiaGXXJ00-QYo0ucEP-QUS1jVEUR_k,10222392
@@ -211,7 +211,7 @@ nexaai/image_gen_impl/mlx_image_gen_impl.py,sha256=BuDkksvXyb4J02GsdnbGAmYckfUU0
211
211
  nexaai/image_gen_impl/pybind_image_gen_impl.py,sha256=ms34VYoD5AxZFG6cIG0QAJDjCtfphaZ1bHzKzey1xF8,3692
212
212
  nexaai/llm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  nexaai/llm_impl/mlx_llm_impl.py,sha256=dPtaEribluHZZY_f9M114glcQhtDEckukw4Sfd5zJos,11296
214
- nexaai/llm_impl/pybind_llm_impl.py,sha256=XXnUuRZMr9rrEL1vM6VTwsgs0KQnKn4C3TyrHE46uw8,8139
214
+ nexaai/llm_impl/pybind_llm_impl.py,sha256=-OFruPYQlAQvy0py6JoBQapBLbRCSgwuZ84WymHtLT0,8163
215
215
  nexaai/mlx_backend/ml.py,sha256=DKXVOAfh8cg7KTKljh7jpcPwfQFNigc6uv_ZXF6lse8,23977
216
216
  nexaai/mlx_backend/profiling.py,sha256=Dc-mybFwBdCIKFWL7CbSHjkOJGAoYHG7r_e_XPhzwBU,9361
217
217
  nexaai/mlx_backend/asr/__init__.py,sha256=fuT_9_xpYJ28m4yjly5L2jChUrzlSQz-b_S7nujxkSM,451
@@ -562,14 +562,14 @@ nexaai/tts_impl/mlx_tts_impl.py,sha256=i_uNPdvlXYtL3e01oKjDlP9jgkWCRt1bBHsExaaiJ
562
562
  nexaai/tts_impl/pybind_tts_impl.py,sha256=mpn44r6pfYLIl-NrEy2dXHjGtWtNCmM7HRyxiANxUI4,1444
563
563
  nexaai/utils/decode.py,sha256=61n4Zf6c5QLyqGoctEitlI9BX3tPlP2a5aaKNHbw3T4,404
564
564
  nexaai/utils/manifest_utils.py,sha256=OOp_BmFWH1ZHMYkS2VGAby5Rpm4f4GLCRBJEBYm-kys,21489
565
- nexaai/utils/model_manager.py,sha256=OnL87zCPn3cBcScCKo-bHnBUpr24-Po293QC6Bwgx1Q,66112
565
+ nexaai/utils/model_manager.py,sha256=8mEESGneQy6RNQ2L_y0cYh7F8cerDE8BGbCgzZwp5Dg,66224
566
566
  nexaai/utils/model_types.py,sha256=ONWjjo8CFPdhxki6qo7MXnSZaEzjBcxa_Kkf_y5NXus,1483
567
567
  nexaai/utils/progress_tracker.py,sha256=jdUqtmPqyhwC9uSKvQcJEYETwSt-OhP4oitdJ94614o,15394
568
568
  nexaai/utils/quantization_utils.py,sha256=FYcNSAKGlBqFDUTx3jSKOr2lnq4nyiyC0ZG8oSxFwiU,7825
569
569
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
570
570
  nexaai/vlm_impl/mlx_vlm_impl.py,sha256=sgHqnX5OCSGLccCnTuRiktIbqThNn3AAIvYE2_Dy4TI,10833
571
571
  nexaai/vlm_impl/pybind_vlm_impl.py,sha256=stJKHdhYhBuWUQkky-nHgCv625qDB_1geI3v5BLNGpM,9765
572
- nexaai-1.0.21rc15.dist-info/METADATA,sha256=dtg_63h3FLk6YaOo-LTA7uBG8Si7SXYbS3DQNoK5c04,1188
573
- nexaai-1.0.21rc15.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
574
- nexaai-1.0.21rc15.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
575
- nexaai-1.0.21rc15.dist-info/RECORD,,
572
+ nexaai-1.0.22rc1.dist-info/METADATA,sha256=VFUv5Y64PitLfHWQWvGW_dHdoGpR99_s3dqkD-1lU4o,1187
573
+ nexaai-1.0.22rc1.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
574
+ nexaai-1.0.22rc1.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
575
+ nexaai-1.0.22rc1.dist-info/RECORD,,