From b9d8c299166f55e7ee960cf26686bc0b23d4e2c8 Mon Sep 17 00:00:00 2001 From: goulustis Date: Fri, 10 Oct 2025 17:21:27 +0800 Subject: [PATCH] remove sht --- lang_agent/config.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/lang_agent/config.py b/lang_agent/config.py index f28c174..1db3cb7 100644 --- a/lang_agent/config.py +++ b/lang_agent/config.py @@ -6,7 +6,7 @@ import os from loguru import logger -## base classes taken from nerfstudio +## NOTE: base classes taken from nerfstudio # Pretty printing class class PrintableConfig: """Printable Config defining str function""" @@ -54,29 +54,6 @@ class InstantiateConfig(PrintableConfig): yaml.dump(self, f) logger.info(f"[yellow]config saved to: {filename}[/yellow]") - -@dataclass -class LiveConfig(InstantiateConfig): - key_id: str = None - """alpaca key id""" - - key_secret: str = None - """alpaca secret""" - - paper: bool = True - """is paper trading or not""" - - def __post_init__(self): - if self.key_id is None: - from dotenv import load_dotenv - load_dotenv() - - self.key_id = os.getenv("ALPACA_KEY_ID") - self.key_secret = os.getenv("ALPACA_KEY_SECRET") - - assert self.key_id is not None, "alpaca key id required!" - assert self.key_secret is not None, "alpaca key secret required!" - def load_config(filename: str, inp_conf = None) -> InstantiateConfig: