feat: terminal UX improvements — Model hint, quota status & env detection#5
Merged
ryanlee666 merged 1 commit intoMiniMax-AI:mainfrom Mar 28, 2026
Conversation
Phase 2 — Model injection: output [Model: X] to stderr before each generation result (text, image, video, speech, music). Phase 3 — Auth status + quota snapshot: 'minimax auth status' now shows masked key, account info, and top-5 quota with percentages. Phase 4 — Env key detection: 'minimax auth login' detects MINIMAX_API_KEY in environment and prompts user before overwriting.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动概述
三项体验优化,不改变任何接口签名,完全向后兼容。
Phase 1 — Model 名称注入
目的:让用户清楚知道每次生成用的是什么模型(2.5 还是 2.7)。
在以下命令的非静默输出前,通过 stderr 打印一行
[Model: X]:text chatimage generatevideo generatespeech synthesizemusic generate--quiet模式下不打印,不影响 pipe / agent 场景。Phase 2 — auth status 增强
目的:运行一次
minimax auth status就能看到认证状态 + 配额余量,不用再单独跑quota show。文本模式输出:
minimax quota show查看完整详情--output json模式保持原有简洁输出不变。Phase 3 — auth login 环境变量检测
目的:避免新用户在已设置
MINIMAX_API_KEY环境变量时多余地走一遍 OAuth 登录流程。运行时检测环境变量
MINIMAX_API_KEY:Warning: MINIMAX_API_KEY is already set in environment.到 stderr文件变更
测试建议