From d65f09ffd547a27b759ba794e10360ff3d4afd69 Mon Sep 17 00:00:00 2001 From: Gordon YUEN Date: Wed, 29 Jul 2026 12:22:14 +0800 Subject: [PATCH] fix: accept result_mode as compatibility extra field Dashboard still sends result_mode in job creation requests but the API removed it. Add to _PUBLIC_COMPATIBILITY_EXTRA_FIELDS so it's silently ignored instead of rejecting the whole request with 400. --- apps/api/app/services/document_ingestion/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/app/services/document_ingestion/service.py b/apps/api/app/services/document_ingestion/service.py index 27056332..a0f049c2 100644 --- a/apps/api/app/services/document_ingestion/service.py +++ b/apps/api/app/services/document_ingestion/service.py @@ -48,7 +48,7 @@ _PUBLIC_MODE_SELECTOR_FIELDS = {"mode", "processing"} _PARSE_TRACK_FIELD = "parse_track" _PAGE_MEMORY_FIELD_PREFIX = "page_memory" -_PUBLIC_COMPATIBILITY_EXTRA_FIELDS = frozenset({_PARSE_TRACK_FIELD}) +_PUBLIC_COMPATIBILITY_EXTRA_FIELDS = frozenset({_PARSE_TRACK_FIELD, "result_mode"}) IngestionCommandFactory = Callable[[str], DocumentIngestionCommand]