feat: 记录并展示每次生成消耗的LLM调用次数(llm_calls)

This commit is contained in:
Sakurasan
2026-09-02 14:10:49 +08:00
parent 734a449037
commit fefb1b4736
6 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ async def list_reports():
try:
rows = conn.execute(
"SELECT id, trade_date, report_type, title, summary, tools_used, model, tokens_used, "
"generation_count, created_at, updated_at "
"generation_count, llm_calls, created_at, updated_at "
"FROM ai_reports ORDER BY trade_date DESC, id DESC LIMIT 50"
).fetchall()
items = []