gnodet-bot commented on code in PR #30734: URL: https://github.com/apache/camel/pull/30734#discussion_r4682760136
########## components/camel-ai/camel-docling/src/main/docs/docling-component.adoc: ########## @@ -1024,7 +1024,11 @@ When using docling-serve API mode (`useDoclingServe=true`), the component expose | `doOcr` | _not set_ -| Enable OCR processing in docling-serve API mode. When not set, the server uses its own defaults. Set `enableOCR` to `false` to explicitly disable OCR. +| Enable OCR processing in docling-serve API mode. When not set, OCR is turned on if `ocrLanguage` is set, and otherwise the server uses its own defaults. Set `enableOCR` to `false` to explicitly disable OCR. + +| `ocrLanguage` +| _not set_ +| Language for OCR. When set, it is sent as `ocr_lang` with `do_ocr=true`, unless `enableOCR` or `doOcr` is `false`. When not set, the server uses its own default languages. In CLI mode, `en` is used when it is not set. Review Comment: 💬 **Minor doc nit:** The `ocrLanguage` row is in the API-mode options table, but its description ends with "In CLI mode, `en` is used when it is not set." — this feels slightly out of place here. The existing NOTE block just below (now updated) is the natural home for mode-crossing caveats. Consider trimming the cell to the API-mode behaviour only and folding the CLI detail into the NOTE: ```suggestion | Language for OCR. When set, it is sent as `ocr_lang` with `do_ocr=true`, unless `enableOCR` or `doOcr` is `false`. When not set, the server uses its own default languages. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
