Conversation
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces Vertex AI video task integration and related plumbing: new task adaptor, token acquisition, adaptor registration, and Vertex-aware fetch path. Adjusts middleware for POST/GET video handling, adds response redaction for video tasks, and minor safety/header tweaks. Several files only receive trailing newline formatting fixes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant API as API (/v1/video/generations)
participant Relay as Relay Layer
participant VTA as Vertex TaskAdaptor
participant GCP as Vertex AI (Operations)
participant DB
rect rgba(227,242,253,0.6)
note over Client,API: Submit video generation (POST)
Client->>API: POST prompt/model
API->>Relay: Build TaskRelayInfo (VideoSubmit)
Relay->>VTA: Validate + Build URL/Headers/Body
VTA->>GCP: predictLongRunning (auth via service account)
GCP-->>VTA: Operation { name, done:false }
VTA-->>Relay: taskID (encoded op name), taskData
Relay->>DB: Persist task (data redacted in controller)
Relay-->>API: { task_id }
API-->>Client: 202 Accepted with task_id
end
rect rgba(232,245,233,0.6)
note over Client,API: Fetch by ID (GET)
Client->>API: GET ?task_id=...
API->>Relay: Build TaskRelayInfo (VideoFetchByID)
Relay->>VTA: FetchTask with op name
VTA->>GCP: operations.get
GCP-->>VTA: Operation { done:bool, result/error }
VTA-->>Relay: ParseTaskResult (status, url/mimeType, error)
Relay->>DB: Update task status/progress/fail_reason
Relay-->>API: Mapped response { status, url, format, error? }
API-->>Client: 200 OK
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit