We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16caaa2 commit ae7a351Copy full SHA for ae7a351
1 file changed
packages/console/app/src/routes/zen/util/modelTpmLimiter.ts
@@ -32,13 +32,7 @@ export function createModelTpmLimiter(providers: { id: string; model: string; tp
32
track: async (id: string, model: string, usageInfo: UsageInfo) => {
33
const key = `${id}/${model}`
34
if (!keys.includes(key)) return
35
- const usage =
36
- usageInfo.inputTokens +
37
- usageInfo.outputTokens +
38
- (usageInfo.reasoningTokens ?? 0) +
39
- (usageInfo.cacheReadTokens ?? 0) +
40
- (usageInfo.cacheWrite5mTokens ?? 0) +
41
- (usageInfo.cacheWrite1hTokens ?? 0)
+ const usage = usageInfo.inputTokens
42
if (usage <= 0) return
43
await Database.use((tx) =>
44
tx
0 commit comments