fix: mock

This commit is contained in:
2026-03-13 23:29:55 +08:00
parent b7e973e2b6
commit c72fbc9a14
7 changed files with 165 additions and 21 deletions

View File

@@ -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 = ""