hjg 账号默认使用 DeepSeek Pro AI 配置

This commit is contained in:
2026-07-07 22:17:00 +08:00
parent 490fb7ac0a
commit 2f2b53e03e
12 changed files with 130 additions and 30 deletions
@@ -251,6 +251,8 @@ async def analyze_stock_stream(
data_dir: Path,
symbol: str,
focus: str = "",
*,
username: str | None = None,
) -> AsyncIterator[str]:
"""流式个股分析:yield 出每个 NDJSON 事件。
@@ -298,6 +300,7 @@ async def analyze_stock_stream(
],
temperature=0.5,
max_tokens=4500,
username=username,
):
yield json.dumps({"type": "delta", "content": delta}, ensure_ascii=False)