Skip to content

Conversation

@dylanmoz
Copy link
Contributor

Wasn't sure whether to PR this against release-v5.0 or the main branch, let me know if I should switch it to main

Background

Using amazon-bedrock and azure it's difficult to know what you can pass into the providerOptions since it's not really typed, plus the packages do not export the types that it accepts. This just re-exports the types these wrappers use (anthropic and azure)

Summary

Export upstream provider options types from Amazon Bedrock and Azure packages to enable consumers to access configuration types when using these providers.

  • Export AnthropicProviderOptions from @ai-sdk/anthropic in amazon-bedrock
  • Export OpenAIResponsesProviderOptions and OpenAIChatLanguageModelOptions from @ai-sdk/openai in azure

@gr2m
Copy link
Collaborator

gr2m commented Oct 27, 2025

Wasn't sure whether to PR this against release-v5.0 or the main branch, let me know if I should switch it to main

yes please send against main, we have a semi-automated backport process to bring compatible changes to the v5 release I got it

@gr2m gr2m added ai/provider provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/azure labels Oct 27, 2025
@gr2m gr2m changed the base branch from release-v5.0 to main October 29, 2025 03:06
@gr2m gr2m force-pushed the export-provider-options branch from 127a11c to 31d3bd9 Compare October 29, 2025 03:11
@gr2m gr2m self-assigned this Oct 29, 2025
@gr2m gr2m enabled auto-merge (squash) October 29, 2025 03:21
Copy link
Collaborator

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We appreciate you contributing to the AI SDK! From typo fix to type export, looking forward to see what's next 🖤

@gr2m gr2m merged commit 2b3e460 into vercel:main Oct 29, 2025
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/azure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants