Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

fix(packaging): the onnx extra must declare onnxscript

PerryLink1c3360d5a57d
diff --git a/pyproject.toml b/pyproject.toml
index 1c846b49..ed4e8a93 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -52,7 +52,9 @@ mcp = ["mcp>=2.2.0"]
# `pip install laya[structured]` adds pydantic for the typed-model helpers (laya/structured.py).
structured = ["pydantic>=2.0.0"]
-onnx = ["onnx", "onnxruntime"]
+# `pip install laya[onnx]` adds ONNX Runtime for `laya.onnx_agent` and `onnxscript`, which
+# `torch.onnx.export` requires (`scripts/export_onnx.py`, `tests/test_onnx.py`).
+onnx = ["onnx", "onnxruntime", "onnxscript"]
# `pip install laya[langchain]` adds the LangChain / LangGraph integrations (laya.integrations).
langchain = [