feat/llm-token-cost
main
# Conflicts: # src/app/(main)/comparison-records/page.tsx
llm_token_price 新 type=json(嵌套 JSON 含浮点数,非 str→int 映射)在配置页 需 JSON.stringify/JSON.parse,与 dict_str_int 共用编辑框。
- 列表「成本」列优先显示后端冻结的实际成本(当时价/绿色),无则回退前端估算(灰色) - 详情抽屉「LLM 成本」:有 llm_cost_yuan 显示实际值 +「实际·当时价」标,无则回退估算; 另展示所用单价快照 JSON - types.ts:ComparisonRecordListItem 加 llm_cost_yuan(详情继承) - 顺带:InputNumber addonAfter → suffix(消 antd 弃用警告);详情 llm_calls 遍历对 input_messages 加空值防御(残缺数据不再整页白屏) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>