From e0d5e99f3fd0b5809de065e805ff41c56303df68 Mon Sep 17 00:00:00 2001 From: Chandrasekharan M Date: Fri, 18 Sep 2026 15:15:54 +0530 Subject: [PATCH] chore(spec): sync spec from unstract-llm-whisperer #756 and regenerate Upstream hides the v1 output_mode spellings (line-printer, dump-text) and the internal modes (excel, document_insights) from the published enums, and marks three internal knobs x-internal without removing them. Only the two generated Literal models change; the facade and the wire are untouched. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01WQ8fZBmtfZJG13fbm5FSan --- specs/llmwhisperer.json | 13 ++++++------- .../_sdk_llmwhisperer/models/extract_mode.py | 4 +--- .../_sdk_llmwhisperer/models/extract_output_mode.py | 4 +--- tools/gen_sdk.sh | 2 +- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/specs/llmwhisperer.json b/specs/llmwhisperer.json index bef1fdd..1cd64d2 100644 --- a/specs/llmwhisperer.json +++ b/specs/llmwhisperer.json @@ -1549,7 +1549,8 @@ "schema": { "default": 10.0, "type": "number" - } + }, + "x-internal": true }, { "in": "query", @@ -1585,7 +1586,8 @@ "schema": { "default": false, "type": "boolean" - } + }, + "x-internal": true }, { "in": "query", @@ -1662,7 +1664,8 @@ "schema": { "default": 0.0, "type": "number" - } + }, + "x-internal": true }, { "in": "query", @@ -1671,8 +1674,6 @@ "schema": { "default": "form", "enum": [ - "document_insights", - "excel", "form", "high_quality", "low_cost", @@ -1689,9 +1690,7 @@ "schema": { "default": "layout_preserving", "enum": [ - "dump-text", "layout_preserving", - "line-printer", "text" ], "type": "string" diff --git a/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_mode.py b/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_mode.py index 660564e..97aa933 100644 --- a/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_mode.py +++ b/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_mode.py @@ -1,11 +1,9 @@ # Generated by tools/gen_sdk.sh from specs/llmwhisperer.json. DO NOT EDIT. from typing import Literal -ExtractMode = Literal["document_insights", "excel", "form", "high_quality", "low_cost", "native_text", "table"] +ExtractMode = Literal["form", "high_quality", "low_cost", "native_text", "table"] EXTRACT_MODE_VALUES: set[ExtractMode] = { - "document_insights", - "excel", "form", "high_quality", "low_cost", diff --git a/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_output_mode.py b/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_output_mode.py index 87757bc..33402a0 100644 --- a/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_output_mode.py +++ b/src/unstract/llmwhisperer/_sdk_llmwhisperer/models/extract_output_mode.py @@ -1,12 +1,10 @@ # Generated by tools/gen_sdk.sh from specs/llmwhisperer.json. DO NOT EDIT. from typing import Literal -ExtractOutputMode = Literal["dump-text", "layout_preserving", "line-printer", "text"] +ExtractOutputMode = Literal["layout_preserving", "text"] EXTRACT_OUTPUT_MODE_VALUES: set[ExtractOutputMode] = { - "dump-text", "layout_preserving", - "line-printer", "text", } diff --git a/tools/gen_sdk.sh b/tools/gen_sdk.sh index fb9b8d6..d1299f4 100755 --- a/tools/gen_sdk.sh +++ b/tools/gen_sdk.sh @@ -15,7 +15,7 @@ REPO="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # here, so the next refresher can tell what they are replacing. SPEC_SOURCE_REPO="Zipstack/unstract-llm-whisperer" SPEC_SOURCE_PATH="specs/llmwhisperer.json" -SPEC_SOURCE_REV="750f941ee229e12cc05d8bd85edaab6a337a8758" +SPEC_SOURCE_REV="c4cc7f1426612a5489f40c5948bb198f89f19c9f" VENV="$REPO/.gen-venv" # The generator shells out to ruff for its own post-processing. Without this it