Skip to content

Commit 8db437e

Browse files
committed
Remove outdated comments
1 parent c62f78f commit 8db437e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/api/providers/gemini.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)