Skip to content

fix(voice): handle cloned voices without a display name - #25

Open
dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/list-cloned-voice-ids
Open

dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/list-cloned-voice-ids

Conversation

@dvd233

@dvd233 dvd233 commented Sep 22, 2026

Copy link
Copy Markdown

What changed

Fall back to the cloned voice_id when a cloned voice response does not include voice_name, while preserving the legacy display name when it is present.

Why

The current MiniMax Voice Management API response for voice_cloning entries provides voice_id, description, and created_time, but not voice_name. The existing formatter interpolated the missing field as Name: undefined, making cloned voices harder to identify in MCP clients.

Reference: https://platform.minimax.io/docs/api-reference/voice-management-get

Verification

  • pnpm run build
  • Mocked smoke check covering current and legacy voice_cloning response shapes
  • git diff --check

The repository-wide pnpm run lint currently fails on the unchanged baseline formatting in all 20 source files; no formatting-only changes are included in this focused patch.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Signed-off-by: dvd233 <111864431+dvd233@users.noreply.github.com>
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.

1 participant