This commit is contained in:
parent
8204aff28b
commit
95f6b25333
|
|
@ -108,7 +108,7 @@ class SensitiveDataFilter(logging.Filter):
|
||||||
import re
|
import re
|
||||||
msg = re.sub(
|
msg = re.sub(
|
||||||
rf'({pattern}["\']?\s*[=:]\s*["\']?)([^"\'\s,}}]+)',
|
rf'({pattern}["\']?\s*[=:]\s*["\']?)([^"\'\s,}}]+)',
|
||||||
r'\1***MASKED***',
|
r'\1**********',
|
||||||
msg,
|
msg,
|
||||||
flags=re.IGNORECASE
|
flags=re.IGNORECASE
|
||||||
)
|
)
|
||||||
|
|
@ -163,7 +163,7 @@ async def global_exception_handler(request, exc):
|
||||||
for pattern in patterns:
|
for pattern in patterns:
|
||||||
error_msg = re.sub(
|
error_msg = re.sub(
|
||||||
rf'{pattern}[a-zA-Z0-9_-]+',
|
rf'{pattern}[a-zA-Z0-9_-]+',
|
||||||
f'{pattern}***MASKED***',
|
f'{pattern}**********',
|
||||||
error_msg
|
error_msg
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,14 +105,14 @@ class TradingAgentsXGraph:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Initialize LLMs independently
|
# 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.deep_thinking_llm = _create_llm(
|
||||||
self.config["deep_think_llm"],
|
self.config["deep_think_llm"],
|
||||||
deep_base_url,
|
deep_base_url,
|
||||||
deep_api_key
|
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.quick_thinking_llm = _create_llm(
|
||||||
self.config["quick_think_llm"],
|
self.config["quick_think_llm"],
|
||||||
quick_base_url,
|
quick_base_url,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue