@ai-sdk/openai: reasoning effort silently dropped for Amazon Bedrock's OpenAI model ids (global./us./openai.gpt-…) on the bedrock-runtime OpenAI-compatible endpoint#25068
Description
With createOpenAI({ baseURL: 'https://bedrock-runtime.<region>.amazonaws.com/openai/v1' }), the Amazon Bedrock runtime's OpenAI-compatible endpoint, the reasoning effort never reaches the model. The SDK drops it and only warns. The request succeeds with HTTP 200, and the model reasons at its own default whatever effort was asked for.
On that endpoint, Bedrock requires a cross-Region inference profile as the model id for OpenAI's GPT models, for example global.openai.gpt-5.6-sol or us.openai.gpt-5.6-sol (AWS: Responses API, "Model IDs"). Bedrock Mantle uses openai.gpt-5.6-sol. @ai-sdk/openai decides whether a model reasons from its id. On main (8ba3940), an id the catalog does not list falls back to getGptVersion in packages/openai/src/openai-model-catalog.ts, which matches /^gpt-(\d+)(?:\.(\d+))?(?:-(.+))?$/. None of Bedrock's spellings match, so each one is classified as a non-reasoning model: reasoningEffort is removed from the request, and the warning "reasoningEffort is not supported for non-reasoning models" is emitted.
Expected: reasoning: { effort } is sent for global.openai.gpt-…, us.openai.gpt-… and openai.gpt-… as it is for .