chore: generate
This commit is contained in:
parent
d8e7e915e2
commit
dbc8d7edca
1 changed files with 2 additions and 4 deletions
|
|
@ -427,14 +427,12 @@ export namespace Session {
|
||||||
}),
|
}),
|
||||||
(input) => {
|
(input) => {
|
||||||
const cacheReadInputTokens = input.usage.cachedInputTokens ?? 0
|
const cacheReadInputTokens = input.usage.cachedInputTokens ?? 0
|
||||||
const cacheWriteInputTokens = (
|
const cacheWriteInputTokens = (input.metadata?.["anthropic"]?.["cacheCreationInputTokens"] ??
|
||||||
input.metadata?.["anthropic"]?.["cacheCreationInputTokens"] ??
|
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
input.metadata?.["bedrock"]?.["usage"]?.["cacheWriteInputTokens"] ??
|
input.metadata?.["bedrock"]?.["usage"]?.["cacheWriteInputTokens"] ??
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
input.metadata?.["venice"]?.["usage"]?.["cacheCreationInputTokens"] ??
|
input.metadata?.["venice"]?.["usage"]?.["cacheCreationInputTokens"] ??
|
||||||
0
|
0) as number
|
||||||
) as number
|
|
||||||
|
|
||||||
const excludesCachedTokens = !!(input.metadata?.["anthropic"] || input.metadata?.["bedrock"])
|
const excludesCachedTokens = !!(input.metadata?.["anthropic"] || input.metadata?.["bedrock"])
|
||||||
const adjustedInputTokens = excludesCachedTokens
|
const adjustedInputTokens = excludesCachedTokens
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue