Skip to content

Commit d611e47

Browse files
authored
Merge pull request #3 from victor0602/chore/shelve-file-api-v040
🧊 Chore: Shelve File API (v0.4.0) — HTTP 404 issue
2 parents f725899 + de593c2 commit d611e47

2 files changed

Lines changed: 21 additions & 32 deletions

File tree

README.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ Command-line interface for the [MiniMax Token Plan](https://platform.minimax.io/
1212

1313
Generate text, images, video, speech, and music from the terminal. Supports both the **Global** (`api.minimax.io`) and **CN** (`api.minimaxi.com`) platforms with automatic region detection.
1414

15-
## What's New (v0.4.0)
15+
## What's New (v0.3.0)
1616

17-
**File management + Vision `file_id` support:**
17+
**`minimax config export-schema`** — export all commands as Anthropic/OpenAI-compatible JSON tool schemas with a single command:
1818

1919
```bash
20-
FILE_ID=$(minimax file upload --file image.png --quiet)
21-
minimax vision describe --file-id $FILE_ID --prompt "这张图里有几个人?"
20+
minimax config export-schema | jq .
21+
minimax config export-schema --command "video generate" | jq .
2222
```
2323

24-
Also new in v0.3.0: **`minimax config export-schema`** — export all commands as Anthropic/OpenAI-compatible JSON tool schemas with a single command. See [Changelog](#changelog) for full version history.
24+
See [Changelog](#changelog) for full version history.
2525

2626
## Installation
2727

@@ -86,9 +86,6 @@ minimax image generate --non-interactive
8686
| `video generate` | Generate a video (auto-downloads on completion) |
8787
| `video task get` | Query video task status |
8888
| `video download` | Download a completed video |
89-
| `file upload` | Upload a file to MiniMax storage |
90-
| `file list` | List uploaded files |
91-
| `file delete` | Delete an uploaded file |
9289
| `music generate` | Generate a song |
9390
| `search query` | Web search |
9491
| `vision describe` | Describe an image (supports `--file-id` to skip base64) |
@@ -127,10 +124,6 @@ minimax music generate --prompt "Indie folk" --lyrics "La la la..." --out song.m
127124
# Web search
128125
minimax search query --q "MiniMax AI latest news"
129126

130-
# File management (for reuse in vision/video)
131-
FILE_ID=$(minimax file upload --file image.png --purpose vision --quiet)
132-
minimax vision describe --file-id $FILE_ID
133-
134127
# Export Agent tool schemas
135128
minimax config export-schema | jq .
136129
minimax config export-schema --command "video generate" | jq .
@@ -203,20 +196,13 @@ bun run build # Build standalone binaries
203196

204197
## Changelog
205198

206-
### v0.4.0 — File Management API + Vision file_id Support
207-
208-
**New `file` resource group:**
209-
- `minimax file upload` — upload local file, get `file_id`; `--quiet` outputs only the ID
210-
- `minimax file list` — formatted table of uploaded files
211-
- `minimax file delete` — remove file by ID
212-
213-
**Vision `--file-id` support:**
214-
- `vision describe` now accepts `--file-id` as mutually exclusive alternative to `--image`
215-
- With `--file-id`: sends `{prompt, file_id}` directly to VLM API (no base64)
216-
- With `--image`: existing base64 encoding path unchanged
217-
- Interactive TTY prompt detects whether input is path/URL or fileId
199+
### v0.4.0 — File Management API (🧊 Shelved)
218200

219-
Note: MiniMax File API returned HTTP 404 with the current API key. Endpoint paths and request handling are verified correct via `--verbose` mode.
201+
> **🧊 Shelved:** File API returned HTTP 404 with current API key. This feature is temporarily hidden until the endpoint permissions are officially opened.
202+
> - `minimax file upload` — upload local file, get `file_id`
203+
> - `minimax file list` — formatted table of uploaded files
204+
> - `minimax file delete` — remove file by ID
205+
> - `vision describe --file-id` — use pre-uploaded file instead of base64
220206
221207
### v0.3.0 — Agent Tool Schema Auto-Generation
222208

src/registry.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ import quotaShow from './commands/quota/show';
2020
import configShow from './commands/config/show';
2121
import configSet from './commands/config/set';
2222
import configExportSchema from './commands/config/export-schema';
23-
import fileUpload from './commands/file/upload';
24-
import fileList from './commands/file/list';
25-
import fileDelete from './commands/file/delete';
23+
// ❄️ 暂时雪藏 File API (等待接口权限开放)
24+
// import fileUpload from './commands/file/upload';
25+
// import fileList from './commands/file/list';
26+
// import fileDelete from './commands/file/delete';
2627
import update from './commands/update';
2728

2829
export type { Command, OptionDef } from './command';
@@ -155,7 +156,6 @@ Resources:
155156
music Music generation (generate)
156157
search Web search (query)
157158
vision Image understanding (describe)
158-
file File management (upload, list, delete)
159159
quota Usage quotas (show)
160160
config CLI configuration (show, set, export-schema)
161161
update Update minimax to a newer version
@@ -235,8 +235,11 @@ export const registry = new CommandRegistry({
235235
'config show': configShow,
236236
'config set': configSet,
237237
'config export-schema': configExportSchema,
238-
'file upload': fileUpload,
239-
'file list': fileList,
240-
'file delete': fileDelete,
238+
239+
// ❄️ 暂时雪藏 File API
240+
// 'file upload': fileUpload,
241+
// 'file list': fileList,
242+
// 'file delete': fileDelete,
243+
241244
'update': update,
242245
});

0 commit comments

Comments
 (0)