From 07d312794d793a4aa272216039927cb91a6f2091 Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:58:24 +0530 Subject: [PATCH] feat: implicitly fallback to azure form recognizer for non-vision LLMs --- recipes/VideoBots.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index abb9e447e..b26503183 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -407,7 +407,10 @@ def run_v2( def document_understanding_step(self, request): ocr_texts = [] - if request.document_model and request.input_images: + if request.input_images and ( + request.document_model + or not LargeLanguageModels[request.selected_model].is_vision_model + ): yield "Running Azure Form Recognizer..." for url in request.input_images: ocr_text = (