Skip to content

Missing FileSDK module in SDK #142

@NianJiuZst

Description

@NianJiuZst

Summary

The SDK (mmx-cli/sdk) exposes programmatic APIs for text, image, video, speech, music, search, vision, and quota — but has no file module. This means SDK users cannot upload, list, delete, or retrieve files from MiniMax storage.

Impact

  • The CLI supports mmx file upload, mmx file list, and mmx file delete
  • The SDK's MiniMaxSDK class has no .file property
  • Users must manually construct HTTP requests with FormData to upload files
  • All file-related API types (FileUploadResponse, FileListResponse, etc.) and endpoints are already defined in the shared layer — only the SDK wrapper is missing

Proposed solution

Add a FileSDK class with:

  • upload(filePath, purpose?) — upload via multipart/form-data
  • list() — list all files
  • delete(fileId) — delete by ID
  • retrieve(fileId) — get metadata + download URL

See linked PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions