Files
openclaw/src/music-generation/model-ref.ts
2026-06-04 02:47:44 -04:00

16 lines
602 B
TypeScript

// Parses model references for music generation requests.
import { parseGenerationModelRef } from "../../packages/media-generation-core/src/model-ref.js";
/**
* Model reference parsing for music generation.
*
* Music generation uses the same provider/model ref grammar as other media
* capabilities, but keeps this wrapper for a dedicated capability boundary.
*/
/** Parse a music generation model ref into provider and model ids. */
export function parseMusicGenerationModelRef(
raw: string | undefined,
): { provider: string; model: string } | null {
return parseGenerationModelRef(raw);
}