feat(comparison-records): 比价记录展示 LLM 实际成本(列表列 + 详情 + 价格快照) #48

Merged
guke merged 4 commits from feat/llm-token-cost into main 2026-07-14 14:38:39 +08:00
Member

调整LLM价格快照展示样式

调整LLM价格快照展示样式
guke added 3 commits 2026-07-14 14:34:41 +08:00
- 列表「成本」列优先显示后端冻结的实际成本(当时价/绿色),无则回退前端估算(灰色)
- 详情抽屉「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>
llm_token_price 新 type=json(嵌套 JSON 含浮点数,非 str→int 映射)在配置页
需 JSON.stringify/JSON.parse,与 dict_str_int 共用编辑框。
guke added 1 commit 2026-07-14 14:38:15 +08:00
guke merged commit 327b043b89 into main 2026-07-14 14:38:39 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WonderableAI/shaguabijia-admin-web#48