[对话框] 实时 tokens 计数旁增加实时价格显示
Open
feature
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 用户1727
**客户端版本**: 0.1.15
---
## 使用场景
对话过程中,对话框里能看到 tokens 数实时跳动,但没有对应的价格显示。用户只能看到消耗了多少 tokens,无法直观知道这对应多少钱,对花费心里没底。
## 诉求
在实时 tokens 计数旁边同步显示实时价格(估算费用),让用户在对话过程中对当前花费有直观预期。
## 建议方案
在对话框的实时 tokens 计数旁,按当前模型计价同步换算并显示估算费用(如 tokens 跳动时价格同步跳动),与第 #587 条提到的模型价格信息保持一致。
---
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN
Contributor guide
Research direction
Start by locating the dialogue UI component that displays the live token count, then trace how the current model and its pricing are exposed in the implementation referenced by issue #587. Done means the estimated price updates beside the live token count during a conversation and uses the same model pricing information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100