Repository navigation
Generate placeholders' pictures and clips through GAM - #6
Merged
Merged
Conversation
A `generate` placeholder for a picture or a clip now has a Generate button. GAM's M8 makes it on fal.ai with the user's own key; GVC has no fal code and no worker. - A `generation` row per run. Reading a project's generations refreshes the unfinished ones from GAM with the reader's token, so a run started and left lands the next time the project is opened. No token is stored. - A finished run's first output goes into the editor's draft (the placeholder's `result`, status ready), once; the other outputs stay offered beside it. - Options come from the model's own catalogue entry (aspect ratio or FLUX image size from the video's aspect, durations as GAM spells them), with GAM's list price as the estimate. - The assistant's new `generate_image` tool generates pictures, at most ASSISTANT_MAX_GENERATIONS a turn, and never video: for footage it leaves a video placeholder for the Generate button. Its rows follow the turn into a new project. - Music and sound placeholders are refused: GAM has no audio models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016fiRJAt34ag62iPiuMkNhm
davior
marked this pull request as ready for review
October 17, 2026 02:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
generateplaceholder for a picture or a clip can now be made. GAM's M8 runs it on fal.ai with the user's own key. GVC has no fal code and no worker. No GAM change is needed.How it runs
generationrow per run (new table and migration). Reading a project's generations refreshes the unfinished rows from GAM with the reader's token. A run started and then left still lands the next time the project is opened, and no token is stored.resultis set and itsstatusbecomesready. This happens once, and is recorded on the row. Any other outputs are offered beside it as small thumbnails to switch to.cannot_generate), since GAM has no audio models. A clip with no base picture getsneeds_base_image. A missing fal.ai key gives an error that links to GAM's Settings.Routes
GET /api/gam/generation-modelsPOST/GET /api/projects/{id}/generationsPOST /api/generations/{id}/useDELETE /api/generations/{id}The assistant
generate_imagetool. It adds the placeholder as a scene's picture or an on-screen image, and starts the generation at once. The cap isASSISTANT_MAX_GENERATIONSper turn (default 6).Frontend
stores/generations.ts: polls every 3 s while a run is going, with staleness tokens; it is reset on logout.Tests
Generated by Claude Code