Skip to content

Commit aa6fe2c

Browse files
authored
Remove abuse warning for token requests (#3691)
I don't think this is indicative of abuse, can easily happen when resuming a task after the cache expired for example.
1 parent 33ea5df commit aa6fe2c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

apps/web/src/lib/ai-gateway/processUsage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,9 +1013,6 @@ export async function processTokenData(
10131013
usageStats = genStats;
10141014
}
10151015

1016-
if (usageStats.inputTokens - usageStats.cacheHitTokens > 100000)
1017-
console.warn(`Abuse?: Large uncached token request detected:`, usageStats);
1018-
10191016
if (
10201017
!usageStats.model || // fallback for failure cases
10211018
isKiloStealthModel(usageContext.requested_model) // this can probably be removed once we're sure we only present requested_model to users

0 commit comments

Comments
 (0)