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.

test(sdk): include x_jev_confidence in test server expected fixture

Sarthak Pandey5e7a88b27237
diff --git a/tests/sdk_server_fixture.py b/tests/sdk_server_fixture.py
index 15a02467..8a02f5bc 100644
--- a/tests/sdk_server_fixture.py
+++ b/tests/sdk_server_fixture.py
@@ -19,7 +19,7 @@ from tokenizers.models import WordLevel # noqa: E402
from transformers import BertConfig, BertModel, PreTrainedTokenizerFast # noqa: E402
from laya import Router, load # noqa: E402
from laya.common import DecisionModel # noqa: E402
-from laya.serve import create_app # noqa: E402
+from laya.serve import _add_jev_confidence, create_app # noqa: E402
def main():
@@ -52,7 +52,7 @@ def main():
"single": {"type": "choice", "instructions": "Pick", "criteria": ["only"]},
}
state = {"text": "hello", "unicode": "नमस्ते", "metadata": {"count": 0, "flag": False}}
- expected = agent.predict(state, questions)
+ expected = _add_jev_confidence(agent.predict(state, questions))
router = Router()
# Both routing branches reach the same tiny fixture; this tests transport,
# model invocation and numeric parity, not pretrained model quality.