[PR #3273] [MERGED] [codex] Add Veo and OpenRouter video providers #5861

Closed
opened 2026-10-22 04:20:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3273
Author: @SpicyMarinara
Created: 7/5/2026
Status: ✅ Merged
Merged: 7/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/video-generation-openrouter-veo


📝 Commits (5)

  • 622eb63 Add Veo and OpenRouter video providers
  • 629a7e3 Add random character setup option
  • b6b3e37 Sync video defaults with selected provider
  • 2d76300 Rename chat settings character folder picker
  • a8438b0 Address video provider review feedback

📊 Changes

34 files changed (+950 additions, -99 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 README.md (+1 -1)
📝 docs/CONFIGURATION.md (+4 -2)
📝 docs/FAQ.md (+1 -0)
📝 docs/SCENE_VIDEO_GENERATION.md (+9 -5)
📝 packages/client/src/components/agents/AgentEditor.tsx (+4 -2)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+4 -2)
📝 packages/client/src/components/agents/ToolEditor.tsx (+4 -2)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+78 -4)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+91 -17)
📝 packages/client/src/components/game-assets/FileEditorModal.tsx (+1 -1)
📝 packages/client/src/components/game-assets/GameAssetsBrowserView.tsx (+2 -2)
📝 packages/client/src/components/game-assets/ImageInfoPopover.tsx (+1 -1)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/BotBrowserPanel.tsx (+1 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+1 -1)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+2 -2)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+2 -2)

...and 14 more files

📄 Description

What Changed

Adds two new Video Generation sources in Connections:

  • Google AI Studio Veo, using the Gemini API long-running video endpoint.
  • OpenRouter Video, using OpenRouter's asynchronous /api/v1/videos workflow.

The server now resolves both providers for test videos, Gallery scene videos, Game Mode scene/storyboard videos, sprite video generation, and Conversation Call character video clips. Veo avatar/reference clips send the same reference image as both the first frame and lastFrame, so character loops can interpolate back to the avatar pose. OpenRouter requests use first-frame references, polling, and authenticated MP4 download handling.

The Video Generation service picker now also reseeds the nested Video Defaults profile when switching providers, so choosing Google AI Studio Veo selects Veo defaults and choosing OpenRouter selects OpenRouter defaults immediately.

Also adds a dice-icon Random row at the top of the character picker in Conversation, Roleplay, and Game setup wizards. Clicking it adds one random not-yet-selected character from the current search results, and it can be clicked repeatedly to add more.

Fallback and empty-state text in editors, panels, Bot Browser, Connections, Presets, Agents, Personas, Lorebooks, Characters, Settings, and related asset browser surfaces now uses Marinara chrome/editor text tokens instead of generic muted foreground styling that could drift back toward the old pink color.

Why

Video Generation connections previously only covered Gemini Omni and xAI. OpenRouter video models and Google AI Studio Veo are now selectable from the same Connections UI, with provider-specific defaults and docs.

Gemini Omni and Google AI Studio Veo stay separate because they use different Google video APIs and payload shapes: Omni is the Gemini Interactions image-to-video flow, while Veo uses Gemini API long-running video prediction with explicit duration/resolution and first/last-frame reference support.

The Random character picker gives users a playful shortcut when they want Marinara to surprise them during new chat setup.

The chrome text cleanup keeps Appearance chroma settings consistent across loading, missing, and empty states.

Notes

No linked issue yet; this came from maintainer chat request and should get an issue/feature request if the project board needs one.

Validation Run

  • git diff --check
  • pnpm --filter @marinara-engine/shared build
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm --filter @marinara-engine/client build
  • pnpm check

Manual Verification Needed

  • Manually verify a Google AI Studio Veo Video Generation connection can test-generate a video.
  • Manually verify selecting Google AI Studio Veo changes Video Defaults to the Veo defaults.
  • Manually verify an OpenRouter Video Generation connection can test-generate a video.
  • Manually verify selecting OpenRouter changes Video Defaults to the OpenRouter defaults.
  • Manually verify a Conversation Call character clip uses the avatar as a loop reference with Veo.
  • Manually verify the Random row appears in Conversation, Roleplay, and Game setup character search, and repeated clicks do not duplicate characters.
  • Manually verify missing/loading/empty states such as Connection not found, panel empty states, and Bot Browser empty results follow the selected chat chrome text color.

Summary by CodeRabbit

  • New Features

    • Added support for more video generation providers, including Google Veo and OpenRouter.
    • Expanded scene video and storyboard options with provider-specific defaults, limits, and polling behavior.
    • Added a “Random (Dice pick)” action for quickly adding a random available character in chat setup.
  • UI Improvements

    • Updated empty-state and loading-state styling across multiple panels and editors for a cleaner, more consistent look.
    • Improved character selection labels, including “Add from Folder” wording.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3273 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/5/2026 **Status:** ✅ Merged **Merged:** 7/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/video-generation-openrouter-veo` --- ### 📝 Commits (5) - [`622eb63`](https://github.com/Pasta-Devs/Marinara-Engine/commit/622eb635f3bd090a20efd7a2eac068b25f376106) Add Veo and OpenRouter video providers - [`629a7e3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/629a7e361b6dcc8f27df7170d90a4a81d23ae760) Add random character setup option - [`b6b3e37`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b6b3e373a7959efad77d54dbfa167a067111a895) Sync video defaults with selected provider - [`2d76300`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d76300474bb1fbfb7b7cdfdd122fe81d6e0a609) Rename chat settings character folder picker - [`a8438b0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a8438b0495d79edaa09546757ff3e430b28a607c) Address video provider review feedback ### 📊 Changes **34 files changed** (+950 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `README.md` (+1 -1) 📝 `docs/CONFIGURATION.md` (+4 -2) 📝 `docs/FAQ.md` (+1 -0) 📝 `docs/SCENE_VIDEO_GENERATION.md` (+9 -5) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+4 -2) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+4 -2) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+4 -2) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+78 -4) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+91 -17) 📝 `packages/client/src/components/game-assets/FileEditorModal.tsx` (+1 -1) 📝 `packages/client/src/components/game-assets/GameAssetsBrowserView.tsx` (+2 -2) 📝 `packages/client/src/components/game-assets/ImageInfoPopover.tsx` (+1 -1) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/BotBrowserPanel.tsx` (+1 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+1 -1) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+2 -2) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+2 -2) _...and 14 more files_ </details> ### 📄 Description ## What Changed Adds two new Video Generation sources in Connections: - Google AI Studio Veo, using the Gemini API long-running video endpoint. - OpenRouter Video, using OpenRouter's asynchronous `/api/v1/videos` workflow. The server now resolves both providers for test videos, Gallery scene videos, Game Mode scene/storyboard videos, sprite video generation, and Conversation Call character video clips. Veo avatar/reference clips send the same reference image as both the first frame and `lastFrame`, so character loops can interpolate back to the avatar pose. OpenRouter requests use first-frame references, polling, and authenticated MP4 download handling. The Video Generation service picker now also reseeds the nested Video Defaults profile when switching providers, so choosing Google AI Studio Veo selects Veo defaults and choosing OpenRouter selects OpenRouter defaults immediately. Also adds a dice-icon **Random** row at the top of the character picker in Conversation, Roleplay, and Game setup wizards. Clicking it adds one random not-yet-selected character from the current search results, and it can be clicked repeatedly to add more. Fallback and empty-state text in editors, panels, Bot Browser, Connections, Presets, Agents, Personas, Lorebooks, Characters, Settings, and related asset browser surfaces now uses Marinara chrome/editor text tokens instead of generic muted foreground styling that could drift back toward the old pink color. ## Why Video Generation connections previously only covered Gemini Omni and xAI. OpenRouter video models and Google AI Studio Veo are now selectable from the same Connections UI, with provider-specific defaults and docs. Gemini Omni and Google AI Studio Veo stay separate because they use different Google video APIs and payload shapes: Omni is the Gemini Interactions image-to-video flow, while Veo uses Gemini API long-running video prediction with explicit duration/resolution and first/last-frame reference support. The Random character picker gives users a playful shortcut when they want Marinara to surprise them during new chat setup. The chrome text cleanup keeps Appearance chroma settings consistent across loading, missing, and empty states. ## Notes No linked issue yet; this came from maintainer chat request and should get an issue/feature request if the project board needs one. ## Validation Run - `git diff --check` - `pnpm --filter @marinara-engine/shared build` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client lint` - `pnpm --filter @marinara-engine/client build` - `pnpm check` ## Manual Verification Needed - [ ] Manually verify a Google AI Studio Veo Video Generation connection can test-generate a video. - [ ] Manually verify selecting Google AI Studio Veo changes Video Defaults to the Veo defaults. - [ ] Manually verify an OpenRouter Video Generation connection can test-generate a video. - [ ] Manually verify selecting OpenRouter changes Video Defaults to the OpenRouter defaults. - [ ] Manually verify a Conversation Call character clip uses the avatar as a loop reference with Veo. - [ ] Manually verify the Random row appears in Conversation, Roleplay, and Game setup character search, and repeated clicks do not duplicate characters. - [ ] Manually verify missing/loading/empty states such as Connection not found, panel empty states, and Bot Browser empty results follow the selected chat chrome text color. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for more video generation providers, including Google Veo and OpenRouter. * Expanded scene video and storyboard options with provider-specific defaults, limits, and polling behavior. * Added a “Random (Dice pick)” action for quickly adding a random available character in chat setup. * **UI Improvements** * Updated empty-state and loading-state styling across multiple panels and editors for a cleaner, more consistent look. * Improved character selection labels, including “Add from Folder” wording. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:20:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5861
No description provided.