mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6410] [MERGED] Fit Atlas Cloud video requests to each model and expose its options #7166
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6410
Author: @stonebystone
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/atlas-schema-driven-video-params📝 Commits (10+)
c9b41bffix(video): fit Atlas Cloud video requests to each model's published schema0e1db6cfix(connections): load the live Atlas Cloud catalog in Fetch Modelsd2a62c6feat(connections): expose each Atlas Cloud video model's own options68e6bccMerge remote-tracking branch 'origin/staging' into feat/atlas-schema-driven-video-params2eb6dd3fix(connections): make the Atlas Cloud text-to-video warning readable in every themed3ca982fix(connections): bound the Atlas Cloud schema cache and harden model lookupsa474374fix(connections): address CodeRabbit review on Atlas Cloud model options7696d20fix(atlas): validate model options and isolate schema changes2eb0c4dMerge branch 'staging' into feat/atlas-schema-driven-video-params35bd7cadocs: keep video provider list together📊 Changes
20 files changed (+1610 additions, -11 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
docs/media/image-providers.md(+1 -1)📝
docs/media/scene-video.md(+32 -1)➕
e2e/atlas-cloud-options.e2e.ts(+105 -0)➕
packages/client/src/components/connections/AtlasCloudModelOptions.tsx(+365 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+20 -0)➕
packages/client/src/hooks/use-atlas-cloud-model-schema.ts(+28 -0)📝
packages/client/src/localization/locales/en.json(+22 -1)📝
packages/server/src/routes/connections.routes.ts(+63 -2)📝
packages/server/src/routes/gallery.routes.ts(+2 -0)📝
packages/server/src/routes/game.routes.ts(+3 -0)📝
packages/server/src/routes/sprites.routes.ts(+4 -0)📝
packages/server/src/services/generation/media-connection-fallback.ts(+8 -3)➕
packages/server/src/services/media/atlas-cloud-video-schema.ts(+416 -0)📝
packages/server/src/services/media/atlas-cloud.ts(+60 -0)📝
packages/server/src/services/video/game-video-runtime.ts(+5 -0)📝
packages/server/src/services/video/video-generation.ts(+21 -2)📝
packages/shared/src/constants/video-generation-defaults.ts(+55 -1)📝
packages/shared/src/types/video-generation-defaults.ts(+38 -0)➕
scripts/regressions/atlas-cloud-video-schema.regression.ts(+359 -0)📄 Description
Linked issue
Closes #6408
Why this change
model,prompt,duration,aspect_ratio,resolution,image) to all of them. Checked against the publishedInputschema of all 110 Atlas Cloud text-to-video and image-to-video models, 44 received a body that violates their schema even when undeclared extra fields are ignored: missingimage_url/size/ratio/images,duration: 8on models that only allow 5 or 10, or a string prompt where a list is required.negative_prompt,seed,generate_audio,shot_type,enable_prompt_expansion, LoRA lists), so provider defaults always applied. Onalibaba/wan-2.6/image-to-video-flash, for example, that means an LLM rewrites the prompt, the clip may cut between shots, and audio is generated unasked.What changed
packages/server/src/services/media/atlas-cloud-video-schema.ts): read the selected model's published schema fromhttps://static.atlascloud.ai/model/schema/<id with "/" as "-">.json(that URL convention held for all 200 video models in the catalog), cache it for 6 hours, and fit the connection defaults to it: image field name (image,image_url,images[],reference_images[]),sizefrom resolution + aspect ratio,ratiovsaspect_ratio, duration snapped to the model's list or range, resolution snapped to the model's own spelling, list-typed prompts, and no undeclared fields. Falls back to the previous body when no schema can be read. Every fitted value is logged; a dropped source illustration is logged as a warning.sharpis unavailable).GET /api/connections/atlas-cloud/video-model-schema?model=endpoint and a Model options section under Video Defaults list every input the model declares beyond the common controls, with Atlas Cloud's description and default. Options stay unsent until changed, are stored per model undervideoGeneration.atlas.modelOptionsin the connection's default parameters, are threaded through everygenerateVideocall site and the video fallback connection, and are checked against the schema before each request (managed, unknown, or out-of-range values are left out and named in the log). The section also lists the clip lengths / resolutions / sizes / aspect ratios the model accepts and warns when a text-to-video model cannot use the gallery image.scripts/regressions/atlas-cloud-video-schema.regression.ts. Docs:docs/media/scene-video.md,docs/media/image-providers.md.CHANGELOG.mdentries under[Unreleased].Storage note:
modelOptionsis a new optional key inside the existingvideoGeneration.atlasJSON on a connection's default parameters. Existing connections normalize to{}; no storage-format change.Network note: Atlas Cloud connections now make two unauthenticated GETs to Atlas Cloud hosts (
static.atlascloud.aifor a model schema,<base URL>/modelsfor the catalog). No API key is sent on either.Other: commits
2eb6dd36bandd3ca982c9are small follow-ups from the screenshot pass and a code read.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the AI agent that prepared this PR (Windows 11, Node 25.9, worktree off
stagingat674330b6c). These are not a substitute for the boxes above:pnpm localization:check,pnpm format:check,pnpm lint,pnpm check:e2e-types,pnpm check:token-estimation-types, andpnpm buildall exit 0. The only lint warning is the existingreact-hooks/exhaustive-depsone inGameNarration.tsx.pnpm checkitself was not green on this machine: it stops atimpeccable:checkbecause.agents/skillsis a git symlink and this Windows checkout hascore.symlinks=false. Every later step was run individually as listed above.atlas-cloud-video-schema.regression.tsandopen-issues.regression.tspass when run directly withtsx.audio_url. Bodies for the curated Veo 3.1 models are unchanged.DATA_DIR), Chromium, dark mode, desktop width: Model options rendered foralibaba/wan-2.6/image-to-video-flashfrom the live schema; settingshot_type,enable_prompt_expansion, andseedthen Save stored them per model; Test Video with debug logging showed the outgoing body carrying the generated first frame and those three options, with noaspect_ratio. Atlas Cloud answered 401 because the key was a placeholder.fetchAtlasCloudModelsagainst the live catalog (177 video, 128 image), not by clicking the button.Still needs a human:
- Manually verify a real generation with a valid Atlas Cloud key: Gallery Animate illustration and Test Video on an image-to-video model, with and without changed model options.tested locally.- Manually verify a model that takestested locally.image_urlaccepts the base64 data URL Marinara sends (some schemas describe that field as a URL).- Manually verify Fetch Models in the connection editor for an Atlas Cloud video connection and an Atlas Cloud image connection.tested locally.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation) Follow-up: #6415docs/media/scene-video.mdanddocs/media/image-providers.mdchanged. A[docs-i18n] docs/media/scene-video.md, docs/media/image-providers.mdfollow-up issue still needs to be opened. New English UI keys live underconnections.mediaSources.atlas.modelOptions.*;connections.mediaSources.atlas.videoDefaultsNotechanged wording.UI evidence (if applicable)
screenshots attached in comment below.
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Improvements
Documentation
Maintainer sweep adjustments and verification
Preserve the valid
prototypemodel option, reject unsafe inherited schema keys, validate object-valued inputs, and hide stale controls during a model change. The focused schema regression fails on the prior head and passes after these adjustments.pnpm checkandpnpm localization:checkpass; local CodeRabbit review reports zero findings.The real connection editor passed six browser cases: desktop Chromium, Android Chromium emulation and iPhone WebKit emulation in light and dark themes. Each case saves options, verifies numeric/string enum identity, switches between two models, and resets one model without deleting the other's saved settings. Screenshots and regression evidence.
No paid provider requests or physical-device checks were performed. The existing staging drag regression is being fixed in #6420 before the final merge gates are rerun.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.