fix: mock
This commit is contained in:
@@ -2,9 +2,12 @@ from pathlib import Path
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
ENV_FILE_PATH = Path(__file__).resolve().parents[2] / ".env"
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env",
|
||||
env_file=ENV_FILE_PATH,
|
||||
env_file_encoding="utf-8",
|
||||
extra="ignore",
|
||||
)
|
||||
@@ -18,6 +21,7 @@ class Settings(BaseSettings):
|
||||
OCR_API_KEY: str = ""
|
||||
OCR_API_URL: str = ""
|
||||
OCR_MODEL: str = ""
|
||||
OCR_ALLOW_MOCK_FALLBACK: bool = False
|
||||
OCR_PARALLELISM: int = 4
|
||||
LLM_API_KEY: str = ""
|
||||
LLM_API_URL: str = ""
|
||||
|
||||
Reference in New Issue
Block a user