|
from dataclasses import dataclass
|
|
from pathlib import Path
|
|
|
|
from devplacepy.services.bot import config
|
|
|
|
|
|
@dataclass
|
|
class BotRuntimeConfig:
|
|
state_path: Path
|
|
base_url: str = config.BASE_URL_DEFAULT
|
|
api_url: str = config.API_URL_DEFAULT
|
|
news_api: str = config.NEWS_API_DEFAULT
|
|
model: str = config.MODEL_DEFAULT
|
|
api_key: str = ""
|
|
input_cost_per_1m: float = config.INPUT_COST_PER_1M_DEFAULT
|
|
output_cost_per_1m: float = config.OUTPUT_COST_PER_1M_DEFAULT
|
|
headless: bool = True
|
|
registry_path: Path = config.ARTICLE_REGISTRY_PATH
|