Skip to content

🧊 Chore: Shelve File API (v0.4.0) — HTTP 404 issue#3

Merged
ryanlee666 merged 1 commit intoMiniMax-AI:mainfrom
victor0602:chore/shelve-file-api-v040
Mar 28, 2026
Merged

🧊 Chore: Shelve File API (v0.4.0) — HTTP 404 issue#3
ryanlee666 merged 1 commit intoMiniMax-AI:mainfrom
victor0602:chore/shelve-file-api-v040

Conversation

@victor0602
Copy link
Copy Markdown
Contributor

原因

当前 API key 缺少文件上传权限,minimax file upload 接口返回 HTTP 404 错误。经 --verbose 模式验证,接口路径和请求处理逻辑均正确,问题源于 MiniMax 官方尚未开放 File API 权限。

改动内容

1. src/registry.ts

  • 注释掉 file upload/list/delete 三个命令的 import 和注册
  • 从 help 文本中移除 file 资源组
  • 代码完整保留,恢复时只需取消注释

2. README.md

  • What's New:降级为 v0.3.0,移除 File API 相关描述
  • Commands 表格:删除 file upload/list/delete 三行
  • Examples:删除 File management 示例段落
  • Changelog:v0.4.0 标记为 🧊 Shelved,注明原因

恢复方式

接口权限开放后,取消 src/registry.ts 中的注释即可快速恢复:

验证

minimax --help | grep file   # 应无输出
minimax file upload          # 应提示 Unknown command

- Comment out file upload/list/delete imports and registry entries
- Remove file commands from help text
- Update README: remove file from What's New, Commands table, and Examples
- Mark v0.4.0 as shelved in Changelog with explanation

Reason: MiniMax File API returns HTTP 404 with current API key.
Feature is preserved in code for easy recovery when endpoint permissions open.
@ryanlee666 ryanlee666 merged commit d611e47 into MiniMax-AI:main Mar 28, 2026
@victor0602 victor0602 deleted the chore/shelve-file-api-v040 branch March 28, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants