Feature: 首页概览添加第三方模型消费统计

未关闭
#996 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust, tauri

调研方向

Start by finding the homepage overview component in the Tauri frontend and the place where provider/model configuration (including third-party API keys) is stored. Then trace where third-party API calls are made, since call counts, input/output token usage and estimated cost have to be recorded there and persisted before any card can display them. The issue names no files or tests, and the optional trend chart plus the local-model exclusion rule make the scope open; “done” means the card appears only when a third-party model is configured and shows accurate per-model usage. Expect to read around the settings and provider layers first, and ask the maintainer about where usage data should live.

由索引模型根据 Issue 内容生成。

描述

💡 Feature Request

功能描述

如果配置了第三方模型(如 DeepSeek、OpenAI 等),希望在首页概览里能看到该模型的消费情况(如 API 调用次数、Token 用量、费用估算等)。

本地模型(如 Whisper 本地)不需要显示消费统计,因为没有 API 费用。

使用场景
  • 用户可能配置了多个第三方 API key,想知道哪个用得比较多
  • 帮助用户控制 API 费用,避免意外的高消费
  • 提供一个直观的消费概览,不需要去第三方平台查账
建议实现
  • 在首页概览区域新增一个「消费统计」卡片(仅在配置了第三方模型时显示)
  • 展示:模型名称、调用次数、Token 用量(Input/Output)、估算费用
  • 可选:按日/周/月的消费趋势图
备注

本地模型(Whisper 等)无需显示此卡片,因为不涉及 API 费用。

主要语言
Rust
星标
3.7k
派生
349
平均合并
2 天 14 小时
30 天内合并 PR
97

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Open-Less/openless 的其他 Issue

查看 Open-Less/openless 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。