@ai-sdk/amazon-bedrock 4.0.111 → 4.0.113

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
@@ -2032,10 +2032,10 @@ import {
2032
2032
  import { AwsV4Signer } from "aws4fetch";
2033
2033
 
2034
2034
  // src/version.ts
2035
- var VERSION = true ? "4.0.111" : "0.0.0-test";
2035
+ var VERSION = true ? "4.0.113" : "0.0.0-test";
2036
2036
 
2037
2037
  // src/bedrock-sigv4-fetch.ts
2038
- function createSigV4FetchFunction(getCredentials, fetch) {
2038
+ function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {
2039
2039
  return async (input, init) => {
2040
2040
  var _a, _b;
2041
2041
  const effectiveFetch = fetch != null ? fetch : globalThis.fetch;
@@ -2075,7 +2075,7 @@ function createSigV4FetchFunction(getCredentials, fetch) {
2075
2075
  accessKeyId: credentials.accessKeyId,
2076
2076
  secretAccessKey: credentials.secretAccessKey,
2077
2077
  sessionToken: credentials.sessionToken,
2078
- service: "bedrock"
2078
+ service
2079
2079
  });
2080
2080
  const signingResult = await signer.sign();
2081
2081
  const signedHeaders = normalizeHeaders(signingResult.headers);