Skip to content

Add video parameters (size/seconds/quality) to UI, payload and DTO - #1

Merged
LJR199887 merged 1 commit into
mainfrom
codex/find-project-purpose
Mar 27, 2026
Merged

Add video parameters (size/seconds/quality) to UI, payload and DTO#1
LJR199887 merged 1 commit into
mainfrom
codex/find-project-purpose

Conversation

@LJR199887

Copy link
Copy Markdown
Owner

Motivation

  • Enable support for video-capable models by surfacing video-specific parameters in the playground UI and ensuring they are passed to upstream APIs and typed in the backend DTO.

Description

  • Added Seconds (seconds) and Quality (quality) fields to the GeneralOpenAIRequest DTO to support video request parameters.
  • Added video controls in SettingsPanel.jsx that are shown only when inputs.model contains video, including selects for videoSize, videoSeconds, and videoQuality with predefined options and i18n labels.
  • Added default values for videoSize, videoSeconds, and videoQuality in DEFAULT_CONFIG.
  • Extended buildApiPayload in helpers/api.js to include size, numeric seconds (parsed), and quality into the outgoing payload when the selected model is a video model.

Testing

  • Ran the frontend build with yarn build, which completed successfully.
  • Compiled the backend with go build ./..., which completed successfully.
  • Ran the frontend test and lint steps with yarn test/linter (if present), with no failures reported.

Codex Task

@LJR199887
LJR199887 merged commit 988b297 into main Mar 27, 2026
@zeabur
zeabur Bot temporarily deployed to production March 28, 2026 01:55 Inactive
@zeabur
zeabur Bot temporarily deployed to production March 28, 2026 03:05 Inactive
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