fix: replace hardcoded 192.168.1.122 with node122 (hostname resolves via /etc/hosts to LAN or EasyTier)
- mo_config.py: xiaoguo_host=node122, xiaoguo_api_url property - market_screener.py, xiaoguo_scanner.py, xiaoguo_news_processor.py: use mo_config or node122 fallback - scripts/intraday_health_check.py, scripts/ocr_client.py: node122 - EasyTier connects at 10.144.144.2 when off-LAN
This commit is contained in:
+12
-1
@@ -87,7 +87,18 @@ class MoConfig:
|
||||
|
||||
hk_rate_fallback: float = 0.87 # 港币→人民币 fallback 汇率
|
||||
|
||||
# ── 服务配置 ──────────────────────────────────────────────────
|
||||
# ── 小果 LLM 端点(用机器名,/etc/hosts 自动解析 LAN/EasyTier)─
|
||||
# node122 = 192.168.1.122 (LAN) / 10.144.144.2 (EasyTier)
|
||||
xiaoguo_host: str = "node122"
|
||||
xiaoguo_port: int = 18003
|
||||
|
||||
@property
|
||||
def xiaoguo_url(self) -> str:
|
||||
return f"http://{self.xiaoguo_host}:{self.xiaoguo_port}"
|
||||
|
||||
@property
|
||||
def xiaoguo_api_url(self) -> str:
|
||||
return f"{self.xiaoguo_url}/v1/chat/completions"
|
||||
|
||||
port: int = field(default_factory=lambda: int(os.environ.get("PORT", "8899")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user