fix(minimax): default music generation to music 2.6

This commit is contained in:
Peter Steinberger
2026-04-25 10:51:39 +01:00
parent c1f359c276
commit ed8384d32d
10 changed files with 33 additions and 33 deletions

View File

@@ -47,7 +47,6 @@ describe("minimax music generation provider", () => {
const provider = buildMinimaxMusicGenerationProvider();
const result = await provider.generateMusic({
provider: "minimax",
model: "music-2.5+",
prompt: "upbeat dance-pop with female vocals",
cfg: {},
lyrics: "our city wakes",
@@ -61,7 +60,7 @@ describe("minimax music generation provider", () => {
get: expect.any(Function),
}),
body: expect.objectContaining({
model: "music-2.5+",
model: "music-2.6",
lyrics: "our city wakes",
output_format: "url",
audio_setting: {
@@ -95,7 +94,7 @@ describe("minimax music generation provider", () => {
const provider = buildMinimaxMusicGenerationProvider();
const result = await provider.generateMusic({
provider: "minimax",
model: "music-2.5+",
model: "music-2.6",
prompt: "upbeat dance-pop with female vocals",
cfg: {},
lyrics: "our city wakes",
@@ -116,7 +115,7 @@ describe("minimax music generation provider", () => {
await expect(
provider.generateMusic({
provider: "minimax",
model: "music-2.5+",
model: "music-2.6",
prompt: "driving techno",
cfg: {},
instrumental: true,
@@ -135,7 +134,7 @@ describe("minimax music generation provider", () => {
const provider = buildMinimaxMusicGenerationProvider();
await provider.generateMusic({
provider: "minimax",
model: "music-2.5+",
model: "music-2.6",
prompt: "upbeat dance-pop",
cfg: {},
});
@@ -143,7 +142,7 @@ describe("minimax music generation provider", () => {
expect(postJsonRequestMock).toHaveBeenCalledWith(
expect.objectContaining({
body: expect.objectContaining({
model: "music-2.5+",
model: "music-2.6",
lyrics_optimizer: true,
}),
}),

View File

@@ -15,7 +15,7 @@ import {
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
const DEFAULT_MINIMAX_MUSIC_BASE_URL = "https://api.minimax.io";
const DEFAULT_MINIMAX_MUSIC_MODEL = "music-2.5+";
const DEFAULT_MINIMAX_MUSIC_MODEL = "music-2.6";
const DEFAULT_TIMEOUT_MS = 120_000;
type MinimaxBaseResp = {
@@ -125,7 +125,7 @@ export function buildMinimaxMusicGenerationProvider(): MusicGenerationProvider {
id: "minimax",
label: "MiniMax",
defaultModel: DEFAULT_MINIMAX_MUSIC_MODEL,
models: [DEFAULT_MINIMAX_MUSIC_MODEL, "music-2.5", "music-2.0"],
models: [DEFAULT_MINIMAX_MUSIC_MODEL, "music-2.6-free", "music-cover", "music-cover-free"],
isConfigured: ({ agentDir }) =>
isProviderApiKeyConfigured({
provider: "minimax",