From 055a8159a424932a4f165df0db11b6d510fbfe51 Mon Sep 17 00:00:00 2001 From: dtarkent2-sys Date: Tue, 24 Feb 2026 02:30:37 +0000 Subject: [PATCH] Add debug logging for LLM provider and type Co-Authored-By: Claude Opus 4.6 --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 753ea9ce..c7eebf42 100644 --- a/app.py +++ b/app.py @@ -81,6 +81,7 @@ def build_config(): "news_data": "yfinance", } config["parallel_analysts"] = True + print(f"[CONFIG] provider={config['llm_provider']}, deep={config['deep_think_llm']}, quick={config['quick_think_llm']}, url={config['backend_url']}", flush=True) return config @@ -132,6 +133,7 @@ async def _run_analysis_inner(analysis_id: str, ticker: str, trade_date: str): config=config, callbacks=[stats_handler], ) + print(f"[ANALYSIS] LLM types: deep={type(graph.deep_thinking_llm).__name__}, quick={type(graph.quick_thinking_llm).__name__}", flush=True) except Exception as e: print(f"[ANALYSIS] Init failed: {e}\n{_tb.format_exc()}", flush=True) await q.put({"type": "error", "message": f"Init failed: {e}"})