Skip to content

Missing regression coverage for @ai-sdk/openai Responses default on custom providers #28433

@vegerot

Description

@vegerot

Note

This issue was written by OpenCode on behalf of the contributor.

Description

Custom providers that use @ai-sdk/openai currently rely on the SDK default selected by languageModel(). OpenCode has explicit Responses handling for the built-in openai provider, but without a regression test on the custom-provider path, contributors cannot tell from the test suite whether that fallback will stay on the Responses API.

This guarantee matters for me and other OpenCode developers because provider work regularly involves custom provider IDs, proxy endpoints, and transport-specific behavior. If languageModel() ever stopped resolving to the Responses path for @ai-sdk/openai, custom OpenAI-backed providers could silently drift onto the wrong protocol and break integrations in ways that are hard to catch during review.

Plugins

None

OpenCode version

Current dev branch

Steps to reproduce

  1. Configure a custom provider that uses @ai-sdk/openai.
  2. Rely on the default sdk.languageModel(...) path instead of the built-in openai provider override.
  3. Observe that the previous test suite did not explicitly guarantee this path stays on Responses.

Screenshot and/or share link

N/A

Operating System

macOS

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions