You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the @anthropic-ai/bedrock-sdk in nextjs/vercel edge functions, it fails with
Attempted import error: 'fromNodeProviderChain' is not exported from '@aws-sdk/credential-providers' (imported as 'fromNodeProviderChain').
Import trace for requested module:
./node_modules/.pnpm/@[email protected][email protected]/node_modules/@anthropic-ai/bedrock-sdk/auth.mjs
But in bedrock-sdk/src/auth.ts#L3fromNodeProviderChain is imported from @aws-sdk/credential-providers which according to their readme, is "Not available in browsers & native apps" and therefore probably not available in the edge runtime.
Are there any trick to get it to run in the edge runtime?
The text was updated successfully, but these errors were encountered:
Sorry we let this slip. I actually think that with AWS's auth system, we won't be able to support bedrock on edge runtimes, but we'll take a look soon and let you know.
Given that this seems to be an issue on edge runtimes, it might be good to, at the very least, update the readme to reflect reality as it relates to supported environments. CF workers and vercel edge are both listed there.
When using the
@anthropic-ai/bedrock-sdk
in nextjs/vercel edge functions, it fails withAccording to the anthropic bedrock-sdk readme, Vercel edge functions are supported.
But in bedrock-sdk/src/auth.ts#L3
fromNodeProviderChain
is imported from@aws-sdk/credential-providers
which according to their readme, is "Not available in browsers & native apps" and therefore probably not available in the edge runtime.Are there any trick to get it to run in the edge runtime?
The text was updated successfully, but these errors were encountered: