Skip to content

fix(core): scope Vertex provider transforms#31004

Merged
kitlangton merged 1 commit into
devfrom
fix/openai-responses-request-body
Jun 5, 2026
Merged

fix(core): scope Vertex provider transforms#31004
kitlangton merged 1 commit into
devfrom
fix/openai-responses-request-body

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • restrict OpenAI-compatible Vertex catalog transforms to the google-vertex provider
  • prevent Vertex location and auth fetch options from leaking into unrelated providers such as OpenCode Zen
  • add a regression for the exact cross-provider mutation

Root cause

The Google Vertex plugin matched every provider using @ai-sdk/openai-compatible. It consequently added location: "us-central1" and a Vertex auth fetch to the opencode provider. A model-level override to @ai-sdk/openai then forwarded location as a raw OpenAI Responses body field, producing HTTP 400.

Verification

  • 28 focused provider and request tests
  • Core typecheck
  • 22-package push-hook typecheck
  • Prettier check

@kitlangton kitlangton merged commit 05d1104 into dev Jun 5, 2026
12 checks passed
@kitlangton kitlangton deleted the fix/openai-responses-request-body branch June 5, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant