From 28064463fdee608b8b611f3761bffd204f8205fe Mon Sep 17 00:00:00 2001 From: Kosta Date: Fri, 20 Nov 2026 19:17:04 +0200 Subject: [PATCH] docs: update supported languages count to 39 --- README.md | 2 +- openapi.json | 2 +- src/lenz_io/client.py | 2 +- tests/test_language.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 21b5626..b4fedf0 100644 --- a/README.md +++ b/README.md @@ -1549,7 +1549,7 @@ lenz extract pitch_deck.pdf --focus "market size" ## Multi-language output The Lenz API returns prose fields (atomic claim, executive summary, debate, panel -reasoning) in any of 13 languages. Pass `language=` on `verify`, `verify_and_wait`, +reasoning) in any of 39 languages. Pass `language=` on `verify`, `verify_and_wait`, `verify_batch`, `assess`, `extract`, or `ask.send`. Verdict labels stay English regardless of language. Serbian (`sr`) is answered in the Latin script. On `extract`, `language` and `focus` are independent — a focus written in any language selects claims emitted in `language`. diff --git a/openapi.json b/openapi.json index 9a58dc2..8c7d133 100644 --- a/openapi.json +++ b/openapi.json @@ -350,7 +350,7 @@ "x-codeSamples": [ { "lang": "Python", - "source": "from lenz_io import Lenz\n\nclient = Lenz(api_key=\"lenz_...\")\nv = client.verify_and_wait(claim=\"Sharks don't get cancer\")\n# Add language=\"es\" for Spanish output (12 languages supported).\n# Add depth=\"low\" for a shallower check that returns sooner.\nprint(v.verdict, v.lenz_score)\n# False 2\n" + "source": "from lenz_io import Lenz\n\nclient = Lenz(api_key=\"lenz_...\")\nv = client.verify_and_wait(claim=\"Sharks don't get cancer\")\n# Add language=\"es\" for Spanish output (39 languages supported).\n# Add depth=\"low\" for a shallower check that returns sooner.\nprint(v.verdict, v.lenz_score)\n# False 2\n" }, { "lang": "TypeScript", diff --git a/src/lenz_io/client.py b/src/lenz_io/client.py index 3188618..12eeb83 100644 --- a/src/lenz_io/client.py +++ b/src/lenz_io/client.py @@ -4,7 +4,7 @@ * Request methods (verify, assess, extract, ask, …) take ``language=''`` as their default. Sending an empty string means "do NOT include the field in the request body" — preserves byte-identical behavior for - existing English callers. Set ``language='es'`` (or any of the 12 + existing English callers. Set ``language='es'`` (or any of the 39 supported codes) to receive prose fields in that language. ``assess``, ``verify`` (and ``verify_and_wait``), ``review`` (and ``review_and_wait``), ``extract`` and ``ask.send`` also take ``language='auto'``: the answer comes diff --git a/tests/test_language.py b/tests/test_language.py index c230d1c..0f51799 100644 --- a/tests/test_language.py +++ b/tests/test_language.py @@ -8,7 +8,7 @@ * ``language=''`` (default) MUST omit the field from the request body. This is the CRITICAL regression invariant: every existing English caller's wire format must stay byte-identical after this change. -* ``language='es' | 'de' | …`` (any of 12 supported codes) MUST send +* ``language='es' | 'de' | …`` (any of 39 supported codes) MUST send ``"language": ""`` in the JSON body. * ``language='auto'`` (``assess``, ``verify``, ``ask.send``) is sent as ``"language": "auto"``, unchanged. The SDK does no validation of its own.