@ai-sdk/amazon-bedrock 4.0.136 → 4.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1532,7 +1532,7 @@ var BedrockChatLanguageModel = class {
1532
1532
  };
1533
1533
  }
1534
1534
  getUrl(modelId) {
1535
- const encodedModelId = encodeURIComponent(modelId);
1535
+ const encodedModelId = modelId.startsWith("arn:") ? encodeURIComponent(modelId).replace(/%3A/g, ":").replace(/%2F/g, "/") : encodeURIComponent(modelId);
1536
1536
  return `${this.config.baseUrl()}/model/${encodedModelId}`;
1537
1537
  }
1538
1538
  };
@@ -2123,7 +2123,7 @@ import {
2123
2123
  import { AwsV4Signer } from "aws4fetch";
2124
2124
 
2125
2125
  // src/version.ts
2126
- var VERSION = true ? "4.0.136" : "0.0.0-test";
2126
+ var VERSION = true ? "4.0.137" : "0.0.0-test";
2127
2127
 
2128
2128
  // src/bedrock-sigv4-fetch.ts
2129
2129
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {