feat(quota): show remaining percentage with decimals (also ask: can the API return decimals?)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
mmx quota コマンドから始め、GET /v1/token_plan/remains の current_weekly_remaining_percent と current_interval_remaining_percent がどのようにフォーマットされるかを追跡します。現在の出力を確認し、小数点以下少なくとも2桁のカバレッジを追加します。API の精度に関するリクエストは、このリポジトリがそのエンドポイントを担当していないため、サービス所有者またはサポートチャネルに回す必要があります。
索引モデルが issue の本文から書いたものです。
説明
Summary
The Token Plan quota endpoint returns current_weekly_remaining_percent and current_interval_remaining_percent as integers, which loses a lot of useful precision at the low end (e.g. 2.8% left is rendered as 3%). I'd like:
- The API to return decimals (ideally with several fractional digits).
- The CLI (
mmx quota) to render at least 2 decimal places, regardless of (1).
API
Endpoint:
GET https://www.minimax.io/v1/token_plan/remains
Authorization: Bearer ${MINIMAX_API_KEY}
Content-Type: application/json
Today:
{
"current_weekly_remaining_percent": 97,
"current_interval_remaining_percent": 85
}
What I'd like to see (any of these would be a strict improvement):
{
"current_weekly_remaining_percent": 97.85,
"current_interval_remaining_percent": 85.31
}
…or, ideally, full precision:
{
"current_weekly_remaining_percent": 97.8532,
"current_interval_remaining_percent": 85.3117385248
}
Note: this repo doesn't own the API
I know MiniMax-AI/cli is the CLI, not the API service. If a maintainer can either:
- forward this request to whoever owns
/v1/token_plan/remains, or - point me at the right repo / contact / support channel for API changes,
…I'd really appreciate it. If the answer is "file it at ", I'll happily move the conversation there.
CLI
Even before (1) lands, the CLI can stop rounding. Today:
╭──────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
Expected:
╭──────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬─────────────────┤
│ general Left 85.58% Wk left 97.01% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
A --no-color / --no-decimals flag for users who prefer the old look would be a nice extra, but the default should change.
Thanks! 🙏
- 主要言語
- TypeScript
- スター
- 2.2k
- フォーク
- 181
- 平均マージ
- 9時間 4分
- マージ済み PR(30日)
- 13
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
MiniMax-AI/cli#259 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
MiniMax-AI/cli#258 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
MiniMax-AI/cli#260 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
MiniMax-AI/cli#257 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
MiniMax-AI/cli#248 · コメント 1 件 · リアクション 1 件 ·
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
area:tools bug good first issue help wanted priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
TaewoooPark/Motifcode#14 ·
-
bug 🐞
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
BasedHardware/omi#15320 ·
-
難易度 2/5 半日 初心者へのやさしさ 78/100
vercel/vercel-plugin#199 ·