Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Feature request: Retry-After header on 429 responses for exhausted Token Plan quota (Open Platform API)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発

調査の方向性

The request concerns the Open Platform API server's 429 responses for error 2056, and the payload names no file, test or entry point in this repository. Confirm first whether the CLI code here produces or handles those responses at all, since the header would need to be set by the server. Done means a 429 for an exhausted Token Plan quota includes a Retry-After header whose value is the seconds until the window resets.

索引モデルが issue の本文から書いたものです。

説明

Feature Request: include Retry-After header in 429 responses for exhausted Token Plan quota

(This is about the Open Platform API server, not the CLI itself — filing here since this is MiniMax's official public repository.)

Scenario

Agent applications run a primary/fallback model chain with MiniMax as the primary. When the Token Plan quota is exhausted, the 429 response (error 2056, "已达到 Token Plan 用量上限") currently carries no Retry-After header.

Problem

Downstream agent frameworks (e.g. OpenClaw) use Retry-After to classify the rate-limit window:

  • With Retry-After (long window): the client fails over to the fallback model immediately — zero retries.
  • Without Retry-After: the client treats it as a transient throttle and keeps retrying the exhausted provider ~10 times over 2–3 minutes before giving up.

During the quota window, every user message pays this 2–3 minute delay, because each turn starts from the primary model again.

Request

Add a Retry-After header to 429 responses that indicate exhausted usage windows (error 2056 Token Plan quota, and similar), with the value set to the remaining seconds until the quota window resets.

Precedent

A comparable CN provider already returns Retry-After on the same class of error (quota exhausted for a billing window), and its clients fail over in milliseconds.

Impact

All agent applications using MiniMax as a primary model benefit: failover latency during quota windows drops from minutes to seconds. Low-cost change, standard HTTP 429 semantics.

No account identifiers, request IDs, or timestamps included — no additional information should be needed to evaluate this request.

主要言語
TypeScript
スター
2.2k
フォーク
190
平均マージ
1時間 39分
マージ済み PR(30日)
3

環境構築

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

はじめの一歩

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

MiniMax-AI/cli のほかの issue

MiniMax-AI/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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