File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -230,13 +230,10 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl
230230 let cacheWriteCost = 0
231231 let cacheReadCost = 0
232232
233- // Cache Writes: Charged at the input token cost plus 5 minutes of cache storage.
234- // Example: Cache write cost = Input token price + (Cache storage price × (5 minutes / 60 minutes))
235233 if ( cacheWriteTokens ) {
236234 cacheWriteCost = cacheWritesPrice * ( cacheWriteTokens / 1_000_000 ) * ( CACHE_TTL / 60 )
237235 }
238236
239- // Cache Reads: Charged at 0.25 × the original input token cost.
240237 if ( cacheReadTokens ) {
241238 const uncachedReadTokens = inputTokens - cacheReadTokens
242239 cacheReadCost = cacheReadsPrice * ( cacheReadTokens / 1_000_000 )
You can’t perform that action at this time.
0 commit comments