Files
magpie/internal
yetone 5bd1aee637 video: Seedance takes a last frame and Ark's own fields through /v1/videos
/v1/videos read OpenAI's request into Ark's content-generation body
but left out the last frame (last_frame, which magpie reads for
MiniMax), and dropped every field OpenAI's API doesn't have, so a
caller in OpenAI's shape couldn't turn off Seedance's audio, fix a
seed or ask for an adaptive ratio (axelburks on Discord asked that the
OpenAI shape be converted to the vendor's).

volcengineVideoBody now sends last_frame as an image_url item with
role last_frame, and passes the request's other fields on as sent
(masked as the prompt is, as for a provider's own videos API). A
multipart form's "false" or "42" goes as false or 42, as Ark takes
them.

Run (mote): at a7f31ef46 (this stack on 2c90922b0), gofmt -l internal clean,
GOOS=linux and GOOS=windows go vet ./... ok; go test -timeout 45m of
internal/gateway, imagemcp, browsermcp, cli, davsync, gui, library,
settingsapi, tui, agent: all ok but two reds already filed and untouched
here: gateway TestCodexPoolSaysTheClientsVersion (#4807) and cli
TestEveryRouteHasACommandOrIsNamed (#4826). After rebasing on 1490045f5, gateway re-run there (pushed onto 253aee08b, whose later commits change only provider/gui Gemini URL defaults; not re-run):
gofmt, both vets, and gateway -run Ark|Volcengine|Video|Videomaker|
ImageMCP|Draw|Image|Film|MiniMax|Grok plus imagemcp, ok.

Broken by hand: arkFilms false for a non-preset Ark key turns
TestArkKeyMakesSeedanceVideos red (create 404 at /api/v3/videos, the
reported gap); leaving out the last_frame item, or sending multipart
strings untyped ("false", "42"), turns
TestArkVideoTakesLastFrameAndItsOwnFields red.

Not tried: a real Ark account (the fake answers with Ark's captured
replies from volcengine_fixtures_test.go); multipart extras against real
Ark; the MCP's generate_video has no last_frame argument yet. Siblings
filed: #4954 (an OpenAI key's Sora can't make videos), #4955 (Seedance
listed as chat models).
2026-11-03 02:40:27 +08:00
..
…
…
…
…
…
…