Skip to content

M2: Implement chunked analysis with multi-frame VLM prompt#7781

Merged
alex-nork merged 1 commit into
mainfrom
swarm/chunk-vision-analysis/task-2
Feb 24, 2026
Merged

M2: Implement chunked analysis with multi-frame VLM prompt#7781
alex-nork merged 1 commit into
mainfrom
swarm/chunk-vision-analysis/task-2

Conversation

@alex-nork
Copy link
Copy Markdown
Contributor

@alex-nork alex-nork commented Feb 24, 2026

Part of #7766. Rewrites analyze-keyframes to group frames into overlapping chunks (default 10 frames, 2 overlap) and analyze each chunk in a single multi-image API call. This provides temporal context for better event detection and reduces API calls by ~8x (e.g. 205 frames -> ~26 calls instead of 205).


Open with Devin

Co-Authored-By: Claude <noreply@anthropic.com>
@alex-nork alex-nork self-assigned this Feb 24, 2026
@alex-nork alex-nork merged commit 41409aa into main Feb 24, 2026
@alex-nork alex-nork deleted the swarm/chunk-vision-analysis/task-2 branch February 24, 2026 13:36
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 2 potential issues.

View 5 additional findings in Devin Review.

Open in Devin Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3352e770ad

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@alex-nork
Copy link
Copy Markdown
Contributor Author

Addressed in #7787

sarahkatebyte pushed a commit that referenced this pull request May 29, 2026
Companion to platform commit
vellum-ai/vellum-assistant-platform@6aa58423e, which removes the
`can_delete_payment_method` field from `AutoTopUpConfigResponse` per
Carson's comment #1 on PR #7781:

> can_delete_payment_method is redundant if only driven off whether or
> not user is on pro plan

The rule reduces to `plan_id == PRO`, so a server-authored boolean was
redundant — the frontend can read `subscription.plan_id` directly.

Changes:

- payment-methods-card.tsx: re-add `useQuery(organizationsBilling
  SubscriptionRetrieveOptions())`, derive `isPro` locally, gate the
  Remove button on `!isPro` instead of the deleted
  `config.can_delete_payment_method`. Two ConfirmDialog variants for
  non-Pro users (auto-top-up on vs off) stay in place.
- auto-top-up-card.tsx: drop `can_delete_payment_method: true` from
  the `DISABLED_CONFIG` seed (field no longer exists on the type).
- openapi-schemas/platform.yaml: re-synced from platform repo
  post-Carson-fix; field is now absent from `AutoTopUpConfigResponse`.
- generated/api/types.gen.ts (regen via `bun run openapi-ts`):
  `can_delete_payment_method: boolean` removed from
  `AutoTopUpConfigResponse`.
- payment-methods-card.test.tsx: rewrite the three render tests to
  mock the subscription query instead of `config.can_delete_payment_
  method`. Same cases: Base + saved card → Change + Remove; Pro +
  saved card → Change only; no saved card → Add Card only.

Backend enforcement (`AutoTopUpViewSet.remove_payment_method` +
`PaymentMethodViewSet.destroy` both return `409` for Pro plans) stays
in place as the authoritative safety net.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant