Compare commits

...

1 Commits

Author SHA1 Message Date
Laurent Paoletti 628bf8cad1 🩺(back) add context to setting sanity check
Signed-off-by: Laurent Paoletti <lp@providenz.fr>
2026-02-04 19:36:22 +01:00
+3
View File
@@ -1169,10 +1169,13 @@ USER QUESTION:
# @property returning a lazy object, which cannot be accessed via cls in a classmethod.
if cls.RAG_DOCUMENT_PARSER == "chat.agent_rag.document_converter.parser.AdaptivePdfParser":
llm_configs = load_llm_configuration(cls._llm_configuration_file_path)
if cls.OCR_HRID not in llm_configs:
available_hrids = ", ".join([f"'{hrid}'" for hrid in llm_configs])
raise ValueError(
f"OCR_HRID '{cls.OCR_HRID}' not found in LLM_CONFIGURATIONS. "
"Please add a matching provider entry or set OCR_HRID to an existing key."
f"Available models id: {available_hrids}"
)
# Langfuse initialization