@ai-sdk/amazon-bedrock 4.0.12 → 4.0.13
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/CHANGELOG.md +6 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -335,8 +335,8 @@ function convertBedrockUsage(usage) {
|
|
|
335
335
|
const cacheWriteTokens = (_b = usage.cacheWriteInputTokens) != null ? _b : 0;
|
|
336
336
|
return {
|
|
337
337
|
inputTokens: {
|
|
338
|
-
total: inputTokens,
|
|
339
|
-
noCache: inputTokens
|
|
338
|
+
total: inputTokens + cacheReadTokens + cacheWriteTokens,
|
|
339
|
+
noCache: inputTokens,
|
|
340
340
|
cacheRead: cacheReadTokens,
|
|
341
341
|
cacheWrite: cacheWriteTokens
|
|
342
342
|
},
|
|
@@ -1759,7 +1759,7 @@ import {
|
|
|
1759
1759
|
import { AwsV4Signer } from "aws4fetch";
|
|
1760
1760
|
|
|
1761
1761
|
// src/version.ts
|
|
1762
|
-
var VERSION = true ? "4.0.
|
|
1762
|
+
var VERSION = true ? "4.0.13" : "0.0.0-test";
|
|
1763
1763
|
|
|
1764
1764
|
// src/bedrock-sigv4-fetch.ts
|
|
1765
1765
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|