# 标题:优化 Token 消耗量及公共 Token 池的显示方式
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 719
- Avg merge
- 4h 30m
- Merged PRs (30d)
- 83
Description
反馈内容:
希望可以优化目前 Token 消耗量的显示方式。
目前的数据显示精度相对较低,只有当 Token 消耗量变化达到约 10 万 Token(0.1M) 时,界面上的数值才会发生明显变化,因此用户很难准确了解实际的消耗情况。
建议将当前的消耗量改为以 **千(K)Token 为单位进行显示,这样可以更直观、准确地反映较小幅度的变化。
另外,也建议增加一个单独的数据展示,用于显示**公共 Token 池中的总 Token 数量,并以 百万(M)Token 作为单位。这样用户可以同时了解当前已经消耗了多少 Token,以及公共 Token 池中还剩余多少资源。
具体建议:
- Token 实际消耗量使用 K(千 作为显示单位;
- 公共 Token 池的总量使用 M(百万) 作为显示单位;
- 提高数据更新的精度,使较小的 Token 消耗变化也能够及时反映;
- 最好能够同时展示“已消耗 Token”和“公共 Token 池剩余 Token”,方便用户进行对比。
预期效果:
通过这样的调整,可以让 Token 使用情况更加透明、直观,也能让用户更准确地掌握自己的 Token 消耗以及公共 Token 池的整体剩余量,从而提升数据展示的清晰度和用户体验。
UID:0621e42d-7875-485d-aff8-8292b9220148
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TypeScript UI components that display token consumption and the public token pool. Check how values are currently rounded and refreshed; done means consumed tokens are shown in K units, the remaining public pool is shown in M units, and smaller changes are reflected clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100