Skip to content

Fix Gateway tool-choice mode serialization - #362

Closed
franklbh wants to merge 2 commits into
vercel-labs:mainfrom
franklbh:codex/tool-choice-regression
Closed

franklbh wants to merge 2 commits into
vercel-labs:mainfrom
franklbh:codex/tool-choice-regression

Conversation

@franklbh

@franklbh franklbh commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #364, which starts from current main and contains the two-file serializer fix and synthetic request tests. Please review that replacement.

Gateway V3 and V4 require tool-choice mode objects such as {"type": "auto"}. The shared serializer emitted a mode string for direct choices and tool subsets. The correction preserves named tools, omitted settings, and existing SDK activeTools behavior.

The current diff uses synthetic tools and mocked HTTP requests. All 205 Gateway tests pass on this branch. No live provider requests were made; live Gateway acceptance remains unverified.

@vercel

vercel Bot commented Nov 17, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@franklbh franklbh added the fix Bug fix label Nov 17, 2026
@franklbh franklbh closed this Nov 17, 2026
@franklbh franklbh reopened this Nov 17, 2026
@franklbh franklbh closed this Nov 17, 2026
@franklbh
franklbh deleted the codex/tool-choice-regression branch November 17, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant