feat: ai letter + disabled fl
This commit is contained in:
@@ -20,6 +20,11 @@ class Settings:
|
||||
min_price_amount: int | None
|
||||
requests_timeout_seconds: int
|
||||
state_file: Path
|
||||
published_offers_file: Path
|
||||
openai_api_base_url: str
|
||||
openai_api_key: str
|
||||
openai_model: str
|
||||
openai_system_prompt_file: Path
|
||||
|
||||
|
||||
def load_settings() -> Settings:
|
||||
@@ -40,6 +45,11 @@ def load_settings() -> Settings:
|
||||
min_price_amount=_parse_optional_int(os.getenv("MIN_PRICE_AMOUNT", "")),
|
||||
requests_timeout_seconds=int(os.getenv("REQUESTS_TIMEOUT_SECONDS", "20")),
|
||||
state_file=Path(os.getenv("STATE_FILE", "data/sent_offers.json")),
|
||||
published_offers_file=Path(os.getenv("PUBLISHED_OFFERS_FILE", "data/published_offers.json")),
|
||||
openai_api_base_url=_require_env("OPENAI_API_BASE_URL"),
|
||||
openai_api_key=_require_env("OPENAI_API_KEY"),
|
||||
openai_model=_require_env("OPENAI_MODEL"),
|
||||
openai_system_prompt_file=Path(_require_env("OPENAI_SYSTEM_PROMPT_FILE")),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user