mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-20 02:31:40 +00:00
16 lines
602 B
TypeScript
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);
|
|
}
|