nexaai 1.0.21rc15__cp310-cp310-macosx_13_0_x86_64.whl → 1.0.22__cp310-cp310-macosx_13_0_x86_64.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"
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.22
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=i-2s1Wa2T5X43O7EAC4aVTh78hvWrdAXgv4DNHwdy7o,49832
3
- nexaai/_version.py,sha256=4-M9S4CZaK-XUQfCxHd1CzTQipPDj8Qyc1KFXz9sMCU,144
2
+ nexaai/_stub.cpython-310-darwin.so,sha256=qy37o7vuVZJxmKIciz2Ra-5B1NYec6XNoczBQD6GV38,49832
3
+ nexaai/_version.py,sha256=fWzVuSja_lnFQfiXurvM3Nq0-fbC2d6ueAZkQQ-1E6Q,139
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=QmxLTY6qmHtbkdZlSyvdh7pVh0KP9j1ARtIWJDi_QMs,217096
22
22
  nexaai/binds/common_bind.cpython-310-darwin.so,sha256=BoXByRlNGDaNS1YyZyCF-s7h0vXP9NLPlJMQQ5pqusU,235488
23
23
  nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=ZOJLzVvTUkbDdBBak1ylOmKx_bwHVzaPvha6RkoLpGo,202032
24
- nexaai/binds/libnexa_bridge.dylib,sha256=ydbNLcP-FzZEuLzj--MN9ufOeEKUxidVq1jTIQgBtl4,290352
25
- nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=O-HyjCya-GBZnaIb_GJSxk5kBJRCaQL6nKu_qBGEZ1w,183096
24
+ nexaai/binds/libnexa_bridge.dylib,sha256=n-MQrXhWtYBzePWog4s56P2oknntApaMv8C00U7FmZY,290352
25
+ nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=-EJUa4rf6nEZUSqKwmB2brSuIdc5OFYOjvqs999ug5E,183096
26
26
  nexaai/binds/rerank_bind.cpython-310-darwin.so,sha256=seJQ1ZpYVR_RCMmBvPSHnLj5LCHX33k5VUFadUkQsvI,200384
27
27
  nexaai/binds/vlm_bind.cpython-310-darwin.so,sha256=IXM3RTJx-rii3DNZCAVY6eKxn9C8TtAMP9i5bi8qA6s,199392
28
- nexaai/binds/cpu_gpu/libggml-base.dylib,sha256=lvQBGJU57cQSVjWYLXKjBcFgf365Z2lALBOA2JBmyp4,630256
29
- nexaai/binds/cpu_gpu/libggml-cpu.so,sha256=86wST0cv8mJVEN4R64moqxrbdYggteQgD5PRSamG4jk,1089416
30
- nexaai/binds/cpu_gpu/libggml-metal.so,sha256=gQ33zcpKbpSuCwF_5jSJSkzblpWowsSseRphd8sM2GI,716360
31
- nexaai/binds/cpu_gpu/libggml.dylib,sha256=QaPtv5OafeKhcxjwPW8rTvSNJy4oEuoWk3oWuTJRPwU,58376
32
- nexaai/binds/cpu_gpu/libmtmd.dylib,sha256=cEhh7YgkfRKbFUpwzfag6XTPiwhkoLA6zgxpnMBQwbQ,718944
33
- nexaai/binds/cpu_gpu/libnexa_cpu_gpu.dylib,sha256=k9fvdnf_mO04gZCyOtbmZVY7FTMH96D2SmPkYQ3m-M0,2038744
34
- nexaai/binds/cpu_gpu/libnexa_plugin.dylib,sha256=Lj2aaTiUK5g-IFufozEhqjso1I_8L-92yi2WQaDJoNY,2143400
28
+ nexaai/binds/cpu_gpu/libggml-base.dylib,sha256=YDclLDlP7XlDpXiKfTOTt6mW7jgXlmwSoT_VuRrGrmM,629528
29
+ nexaai/binds/cpu_gpu/libggml-cpu.so,sha256=cnLUQ7WdX-5iiDaH8v45u1kX1NUmK8DanpzSMGCpXPE,1039800
30
+ nexaai/binds/cpu_gpu/libggml-metal.so,sha256=Xhhl_tLg1xmCIQVrKjqPFaLHAlx_2wUFiwDyUk0wJ-E,713680
31
+ nexaai/binds/cpu_gpu/libggml.dylib,sha256=12Q1Z98oM81hxzT_GMQsW5rlhC8DOMsX6luWVCFQHcI,58336
32
+ nexaai/binds/cpu_gpu/libmtmd.dylib,sha256=4-KGS82gxwwIJBNHuZ88mzzTbNZ12tqsDD46-ey6sQ4,701504
33
+ nexaai/binds/cpu_gpu/libnexa_cpu_gpu.dylib,sha256=9qrrMOlGWM9cWUORg64GfkE_p9aQ1rjIp_z-QVfIFH8,1982280
34
+ nexaai/binds/cpu_gpu/libnexa_plugin.dylib,sha256=GiXEXNYePuJRaCtnJw1jrS2dtPcp90qr-IvnrL95dmU,2064152
35
35
  nexaai/cv_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  nexaai/cv_impl/mlx_cv_impl.py,sha256=gKECQOv8iaWwG3bl7xeqVy2NN_9K7tYerIFzfn4eLo4,3228
37
37
  nexaai/cv_impl/pybind_cv_impl.py,sha256=uSmwBste4cT7c8DQmXzRLmzwDf773PAbXNYWW1UzVls,1064
@@ -43,7 +43,7 @@ nexaai/image_gen_impl/mlx_image_gen_impl.py,sha256=BuDkksvXyb4J02GsdnbGAmYckfUU0
43
43
  nexaai/image_gen_impl/pybind_image_gen_impl.py,sha256=ms34VYoD5AxZFG6cIG0QAJDjCtfphaZ1bHzKzey1xF8,3692
44
44
  nexaai/llm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  nexaai/llm_impl/mlx_llm_impl.py,sha256=dPtaEribluHZZY_f9M114glcQhtDEckukw4Sfd5zJos,11296
46
- nexaai/llm_impl/pybind_llm_impl.py,sha256=XXnUuRZMr9rrEL1vM6VTwsgs0KQnKn4C3TyrHE46uw8,8139
46
+ nexaai/llm_impl/pybind_llm_impl.py,sha256=-OFruPYQlAQvy0py6JoBQapBLbRCSgwuZ84WymHtLT0,8163
47
47
  nexaai/mlx_backend/ml.py,sha256=DKXVOAfh8cg7KTKljh7jpcPwfQFNigc6uv_ZXF6lse8,23977
48
48
  nexaai/mlx_backend/profiling.py,sha256=Dc-mybFwBdCIKFWL7CbSHjkOJGAoYHG7r_e_XPhzwBU,9361
49
49
  nexaai/mlx_backend/asr/__init__.py,sha256=fuT_9_xpYJ28m4yjly5L2jChUrzlSQz-b_S7nujxkSM,451
@@ -394,14 +394,14 @@ nexaai/tts_impl/mlx_tts_impl.py,sha256=i_uNPdvlXYtL3e01oKjDlP9jgkWCRt1bBHsExaaiJ
394
394
  nexaai/tts_impl/pybind_tts_impl.py,sha256=mpn44r6pfYLIl-NrEy2dXHjGtWtNCmM7HRyxiANxUI4,1444
395
395
  nexaai/utils/decode.py,sha256=61n4Zf6c5QLyqGoctEitlI9BX3tPlP2a5aaKNHbw3T4,404
396
396
  nexaai/utils/manifest_utils.py,sha256=OOp_BmFWH1ZHMYkS2VGAby5Rpm4f4GLCRBJEBYm-kys,21489
397
- nexaai/utils/model_manager.py,sha256=OnL87zCPn3cBcScCKo-bHnBUpr24-Po293QC6Bwgx1Q,66112
397
+ nexaai/utils/model_manager.py,sha256=8mEESGneQy6RNQ2L_y0cYh7F8cerDE8BGbCgzZwp5Dg,66224
398
398
  nexaai/utils/model_types.py,sha256=ONWjjo8CFPdhxki6qo7MXnSZaEzjBcxa_Kkf_y5NXus,1483
399
399
  nexaai/utils/progress_tracker.py,sha256=jdUqtmPqyhwC9uSKvQcJEYETwSt-OhP4oitdJ94614o,15394
400
400
  nexaai/utils/quantization_utils.py,sha256=FYcNSAKGlBqFDUTx3jSKOr2lnq4nyiyC0ZG8oSxFwiU,7825
401
401
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
402
402
  nexaai/vlm_impl/mlx_vlm_impl.py,sha256=sgHqnX5OCSGLccCnTuRiktIbqThNn3AAIvYE2_Dy4TI,10833
403
403
  nexaai/vlm_impl/pybind_vlm_impl.py,sha256=stJKHdhYhBuWUQkky-nHgCv625qDB_1geI3v5BLNGpM,9765
404
- nexaai-1.0.21rc15.dist-info/METADATA,sha256=dtg_63h3FLk6YaOo-LTA7uBG8Si7SXYbS3DQNoK5c04,1188
405
- nexaai-1.0.21rc15.dist-info/WHEEL,sha256=0KYp5feZ1CMUhsfFXKpSQTbSmQbXy4mv6yPPVBXg2EM,110
406
- nexaai-1.0.21rc15.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
407
- nexaai-1.0.21rc15.dist-info/RECORD,,
404
+ nexaai-1.0.22.dist-info/METADATA,sha256=dgjz8lyw-1DssxtFV5wnxMO5P5iPnLVbOElwYtgrzic,1184
405
+ nexaai-1.0.22.dist-info/WHEEL,sha256=0KYp5feZ1CMUhsfFXKpSQTbSmQbXy4mv6yPPVBXg2EM,110
406
+ nexaai-1.0.22.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
407
+ nexaai-1.0.22.dist-info/RECORD,,