Skip to content

Add video generation support: UI controls, payload handling, and DTO fields - #2

Merged
LJR199887 merged 3 commits into
mainfrom
codex/find-project-purpose-3vdzr3
Mar 28, 2026
Merged

Add video generation support: UI controls, payload handling, and DTO fields#2
LJR199887 merged 3 commits into
mainfrom
codex/find-project-purpose-3vdzr3

Conversation

@LJR199887

Copy link
Copy Markdown
Owner

Motivation

  • Introduce video generation support end-to-end so users can request short videos with size, duration, and quality parameters.
  • Ensure the frontend exposes video-specific controls only for video-capable models and that payloads are routed to the proper video endpoint.
  • Extend backend DTO to accept video parameters so the server can forward them to upstream video APIs.

Description

  • Added Seconds and Quality fields to GeneralOpenAIRequest DTO to allow video-specific parameters to be sent in requests.
  • Added a new API endpoint constant VIDEO_GENERATIONS and default input values videoSize, videoSeconds, and videoQuality in DEFAULT_CONFIG.
  • Extended SettingsPanel.jsx to detect video models and show selects for video size, seconds, and quality, and wire them to onInputChange.
  • Updated buildApiPayload to detect video models, force non-streaming behavior for video requests, and add size, seconds, and quality to the request payload.
  • Implemented video-aware logic in useApiRequest.jsx: added helpers to detect video payloads, extract text/image from message content, build simplified video request payloads, route to the VIDEO_GENERATIONS endpoint, and handle non-stream responses for video tasks by summarizing task info into the UI message; updated sendRequest to respect forced non-stream for video requests.

Testing

  • Ran the existing JavaScript test and lint commands (yarn test and yarn lint) against the modified codebase and they passed.
  • Performed a local development build of the web UI (yarn start) to validate compilation and basic runtime behavior without errors.

Codex Task

@LJR199887 LJR199887 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@zeabur
zeabur Bot temporarily deployed to production March 28, 2026 03:27 Inactive

@LJR199887 LJR199887 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@zeabur
zeabur Bot temporarily deployed to production March 28, 2026 04:13 Inactive
@zeabur
zeabur Bot temporarily deployed to production March 28, 2026 04:42 Inactive
@LJR199887
LJR199887 merged commit 8446231 into main Mar 28, 2026
1 check passed
@LJR199887
LJR199887 deleted the codex/find-project-purpose-3vdzr3 branch March 28, 2026 06:11
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