Skip to content

feat(provider/gateway): Server-side image request splitting#10506

Merged
R-Taneja merged 4 commits intomainfrom
server-side-gateway-image-request-splitting
Nov 24, 2025
Merged

feat(provider/gateway): Server-side image request splitting#10506
R-Taneja merged 4 commits intomainfrom
server-side-gateway-image-request-splitting

Conversation

@R-Taneja
Copy link
Copy Markdown
Contributor

@R-Taneja R-Taneja commented Nov 23, 2025

Background

A better way to solve: #10478

Summary

Lets the Gateway server handle image request splitting

Manual Verification

Cost is reported correctly after running a query with n > maxImagesPerCall

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@R-Taneja R-Taneja requested a review from shaper November 23, 2025 23:30
@R-Taneja R-Taneja marked this pull request as ready for review November 23, 2025 23:30
Copy link
Copy Markdown
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

no objection from AI SDK perspective

@shaper
Copy link
Copy Markdown
Collaborator

shaper commented Nov 24, 2025

need to run prettier-fix

@R-Taneja R-Taneja enabled auto-merge (squash) November 24, 2025 03:20
@R-Taneja R-Taneja added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Nov 24, 2025
@R-Taneja R-Taneja merged commit e8694af into main Nov 24, 2025
22 checks passed
@R-Taneja R-Taneja deleted the server-side-gateway-image-request-splitting branch November 24, 2025 03:23
vercel-ai-sdk bot pushed a commit that referenced this pull request Nov 24, 2025
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Nov 24, 2025
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

vercel-ai-sdk bot commented Nov 24, 2025

⚠️ Backport to release-v5.0 created but has conflicts: #10510

R-Taneja added a commit that referenced this pull request Nov 24, 2025
…#10510)

This is an automated backport of #10506 to the release-v5.0 branch. FYI
@R-Taneja
This backport has conflicts that need to be resolved manually.

### `git cherry-pick` output

```
Auto-merging packages/gateway/src/gateway-image-model-settings.ts
Auto-merging packages/gateway/src/gateway-image-model.test.ts
CONFLICT (content): Merge conflict in packages/gateway/src/gateway-image-model.test.ts
Auto-merging packages/gateway/src/gateway-image-model.ts
CONFLICT (content): Merge conflict in packages/gateway/src/gateway-image-model.ts
error: could not apply e8694af... feat(provider/gateway): Server-side image request splitting (#10506)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
```

---------

Co-authored-by: Rohan Taneja <47066511+R-Taneja@users.noreply.github.com>
@gr2m gr2m added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/gateway Issues related to the @ai-sdk/gateway provider and removed ai/gateway labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/gateway Issues related to the @ai-sdk/gateway provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants