Skip to content

feat: accept a source file on generation assets - #157

Merged
dazzatronus merged 1 commit into
mainfrom
derk/generation-asset-src
Oct 15, 2026
Merged

dazzatronus merged 1 commit into
mainfrom
derk/generation-asset-src

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

Some generation models take a source file instead of a prompt, such as a model that measures a music track. This lets a generation asset carry src.

  • src (a URI) is optional and prompt is no longer required on its own. An asset needs one of them, enforced in the zod output by the same refine the media assets use.
  • The type enum and the responses are unchanged, so existing requests validate as before.

Verify: pnpm build && pnpm test && pnpm test:smoke (75 pass: a src-only asset parses, an asset with neither is rejected).

@dazzatronus
dazzatronus merged commit 5ba931c into main Oct 15, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dazzatronus
dazzatronus deleted the derk/generation-asset-src branch October 16, 2026 05:57
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