Files
openclaw/src/image-generation/model-ref.ts
2026-06-04 05:00:21 -04:00

11 lines
493 B
TypeScript

/** Parses image-generation model references into provider/model components. */
import { parseGenerationModelRef } from "../../packages/media-generation-core/src/model-ref.js";
// Image model refs share the generic media-generation provider/model grammar:
// "provider/model" when explicit, otherwise null for default resolution.
export function parseImageGenerationModelRef(
raw: string | undefined,
): { provider: string; model: string } | null {
return parseGenerationModelRef(raw);
}