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

オープン
#996 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
97

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Open-Less/openless のほかの issue

Open-Less/openless の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。