@ai-sdk/amazon-bedrock 4.0.135 → 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
@@ -1207,6 +1207,7 @@ var BedrockChatLanguageModel = class {
1207
1207
  headers: responseHeaders
1208
1208
  },
1209
1209
  warnings,
1210
+ request: { body: args },
1210
1211
  ...providerMetadata && { providerMetadata }
1211
1212
  };
1212
1213
  }
@@ -1526,12 +1527,12 @@ var BedrockChatLanguageModel = class {
1526
1527
  }
1527
1528
  })
1528
1529
  ),
1529
- // TODO request?
1530
+ request: { body: args },
1530
1531
  response: { headers: responseHeaders }
1531
1532
  };
1532
1533
  }
1533
1534
  getUrl(modelId) {
1534
- const encodedModelId = encodeURIComponent(modelId);
1535
+ const encodedModelId = modelId.startsWith("arn:") ? encodeURIComponent(modelId).replace(/%3A/g, ":").replace(/%2F/g, "/") : encodeURIComponent(modelId);
1535
1536
  return `${this.config.baseUrl()}/model/${encodedModelId}`;
1536
1537
  }
1537
1538
  };
@@ -2122,7 +2123,7 @@ import {
2122
2123
  import { AwsV4Signer } from "aws4fetch";
2123
2124
 
2124
2125
  // src/version.ts
2125
- var VERSION = true ? "4.0.135" : "0.0.0-test";
2126
+ var VERSION = true ? "4.0.137" : "0.0.0-test";
2126
2127
 
2127
2128
  // src/bedrock-sigv4-fetch.ts
2128
2129
  function createSigV4FetchFunction(getCredentials, fetch, service = "bedrock") {