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
- Configure a gateway model whose API ID is
alias/example-model.
- Set gateway routing options and an OpenAI-specific option.
- Observe that the OpenAI option is emitted under
providerOptions.alias instead of providerOptions.openai.
Operating System
macOS
Terminal
Terminal
Description
For
@ai-sdk/gatewaymodels, provider options other thangatewayare 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 asopenai.Plugins
None
OpenCode version
1.18.29
Steps to reproduce
alias/example-model.providerOptions.aliasinstead ofproviderOptions.openai.Operating System
macOS
Terminal
Terminal