Skip to content

Model-scoped options object for generative assets - #128

Merged
dazzatronus merged 3 commits into
mainfrom
derk/generation-options-schema
Aug 12, 2026
Merged

Model-scoped options object for generative assets#128
dazzatronus merged 3 commits into
mainfrom
derk/generation-options-schema

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What

Restructures generation settings on image, video and audio assets: the asset root keeps prompt and model, and a new options object carries all model-specific settings (voice, resolution, duration, music settings, image-to-video input, etc.). The flat generation fields are removed. Also redefines src + prompt together as valid (src is a preview placeholder; the prompt regenerates the asset at render, cache-permitting) and documents the on-demand generate endpoints.

Why

Only prompt and model are common to every generation model; the per-model fields were accumulating on the asset root with conflicting meanings and units. Options are model-scoped, validated server-side against each model's published schema, so new models never change the asset schema.

Verify

pnpm build && pnpm test:smoke && pnpm test

@dazzatronus
dazzatronus merged commit 65fead0 into main Aug 12, 2026
1 check passed
@dazzatronus
dazzatronus deleted the derk/generation-options-schema branch August 12, 2026 12:28
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant