feat(quota): show remaining percentage with decimals (also ask: can the API return decimals?)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Inizia con il comando mmx quota e traccia il modo in cui vengono formattati current_weekly_remaining_percent e current_interval_remaining_percent provenienti da GET /v1/token_plan/remains. Conferma l’output attuale e aggiungi una copertura per almeno due cifre decimali; la richiesta di precisione dell’API deve essere indirizzata al responsabile del servizio o al canale di supporto, perché questo repository non è proprietario di quell’endpoint.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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! 🙏
- Lingua principale
- TypeScript
- Stelle
- 2.2k
- Fork
- 181
- Merge medio
- 9h 4m
- PR unite (30g)
- 13
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MiniMax-AI/cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
MiniMax-AI/cli#259 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
MiniMax-AI/cli#258 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
MiniMax-AI/cli#260 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
MiniMax-AI/cli#257 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
MiniMax-AI/cli#248 · 1 commento · 1 reazione ·
Tutte le issue di MiniMax-AI/cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
0xMiden/bridge-portal#132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:tools bug good first issue help wanted priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
newrelic-experimental/preflight#793 · 1 commento ·