From 5d4a10b121317fa481208dacbee47032b08ff928 Mon Sep 17 00:00:00 2001 From: Christoph Auer <60343111+cau-git@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:57:16 +0100 Subject: [PATCH] fix: Configure env prefix for docling settings (#315) Signed-off-by: Christoph Auer --- docling/datamodel/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docling/datamodel/settings.py b/docling/datamodel/settings.py index 7daf5047..b1c47305 100644 --- a/docling/datamodel/settings.py +++ b/docling/datamodel/settings.py @@ -2,7 +2,7 @@ from pathlib import Path from pydantic import BaseModel -from pydantic_settings import BaseSettings +from pydantic_settings import BaseSettings, SettingsConfigDict class DocumentLimits(BaseModel): @@ -40,6 +40,8 @@ class DebugSettings(BaseModel): class AppSettings(BaseSettings): + model_config = SettingsConfigDict(env_prefix="DOCLING_", env_nested_delimiter="_") + perf: BatchConcurrencySettings debug: DebugSettings