Skip to content

Gateway model aliases cannot target explicit provider option namespaces #47986

Description

@codylandry

Description

For @ai-sdk/gateway models, provider options other than gateway are bucketed under the model ID prefix. If that prefix is a routing alias rather than the upstream provider name, callers cannot set an explicit namespace such as openai.

Plugins

None

OpenCode version

1.18.29

Steps to reproduce

  1. Configure a gateway model whose API ID is alias/example-model.
  2. Set gateway routing options and an OpenAI-specific option.
  3. Observe that the OpenAI option is emitted under providerOptions.alias instead of providerOptions.openai.

Operating System

macOS

Terminal

Terminal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions