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.

docs(mcp): clarify nullable model input

Ha1baraA1149c00602fb2c
diff --git a/laya/mcp/server.py b/laya/mcp/server.py
index 89b56cac..044b0769 100644
--- a/laya/mcp/server.py
+++ b/laya/mcp/server.py
@@ -91,7 +91,8 @@ _GUARDRAILS = (
# with the checkpoints, and a copy here would be a second thing to keep current. An invalid name
# comes back as an error that lists every accepted one.
_MODEL_DOC = (
- " model: 'auto' (default) lets the router pick the checkpoint; anything else names one, and "
+ " model: null (default), 'auto', or omitted all let the router pick the checkpoint; "
+ "anything else names one, and "
"core's aliases and casing are honoured ('en', 'ML', 'laya-multilingual'). The answer's "
"routing.model always reports the canonical name."
)
diff --git a/tests/test_mcp.py b/tests/test_mcp.py
index 0caf856e..97c8fd6c 100644
--- a/tests/test_mcp.py
+++ b/tests/test_mcp.py
@@ -1849,6 +1849,11 @@ def test_controls_signature_and_schema():
model_schemas.append(model_schema)
ok("schema/model_specs_consistent", all(model_schema == model_schemas[0] for model_schema in model_schemas),
repr(model_schemas))
+ for name in ("laya_predict", "laya_shortlist"):
+ description = by_name[name].description.lower()
+ ok("schema/%s_model_doc_matches_nullable_default" % name,
+ all(option in description for option in ("null (default)", "'auto'", "omitted")),
+ description)
def test_lang_guess_control():