From 95f6b25333db581189fa179b8effe54f7a072faf Mon Sep 17 00:00:00 2001 From: MarkLo Date: Sat, 13 Dec 2025 02:26:49 +0800 Subject: [PATCH] --- backend/app/main.py | 4 ++-- tradingagents/graph/trading_graph.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 1e78e2d2..d2d0b639 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -108,7 +108,7 @@ class SensitiveDataFilter(logging.Filter): import re msg = re.sub( rf'({pattern}["\']?\s*[=:]\s*["\']?)([^"\'\s,}}]+)', - r'\1***MASKED***', + r'\1**********', msg, flags=re.IGNORECASE ) @@ -163,7 +163,7 @@ async def global_exception_handler(request, exc): for pattern in patterns: error_msg = re.sub( rf'{pattern}[a-zA-Z0-9_-]+', - f'{pattern}***MASKED***', + f'{pattern}**********', error_msg ) diff --git a/tradingagents/graph/trading_graph.py b/tradingagents/graph/trading_graph.py index 10bc5f4d..2cb162c8 100644 --- a/tradingagents/graph/trading_graph.py +++ b/tradingagents/graph/trading_graph.py @@ -105,14 +105,14 @@ class TradingAgentsXGraph: ) # Initialize LLMs independently - print(f"DEBUG: Initializing Deep Thinking LLM: Model={self.config['deep_think_llm']}, BaseURL={deep_base_url}, Key={deep_api_key[:10]}...") + print(f"DEBUG: Initializing Deep Thinking LLM: Model={self.config['deep_think_llm']}, BaseURL={deep_base_url}, Key=**********") self.deep_thinking_llm = _create_llm( self.config["deep_think_llm"], deep_base_url, deep_api_key ) - print(f"DEBUG: Initializing Quick Thinking LLM: Model={self.config['quick_think_llm']}, BaseURL={quick_base_url}, Key={quick_api_key[:10]}...") + print(f"DEBUG: Initializing Quick Thinking LLM: Model={self.config['quick_think_llm']}, BaseURL={quick_base_url}, Key=**********") self.quick_thinking_llm = _create_llm( self.config["quick_think_llm"], quick_base_url,