mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-26 08:59:29 +00:00
11 lines
493 B
TypeScript
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);
|
|
}
|