Lowering the Gemini Caching TTL time to 15 minutes (#3116)

* Lowering the Gemini Cahcing TTL time to 15 minutes

* Lowering the Gemini Cahcing TTL time to 15 minutes
This commit is contained in:
nomaven authored and GitHub committed 2025-04-29 23:55:35 +05:30
1 parent 7e7844529f
commit deeda6e273
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Lowering Gemini cache TTL time
+2 -2
View File
@@ -7,8 +7,8 @@ import { ApiHandlerOptions, geminiDefaultModelId, GeminiModelId, geminiModels, M
import { convertAnthropicMessageToGemini } from "../transform/gemini-format"
import { ApiStream } from "../transform/stream"
// Define a default TTL for the cache (e.g., 1 hour in seconds)
const DEFAULT_CACHE_TTL_SECONDS = 3600
// Define a default TTL for the cache (e.g., 15 minutes in seconds)
const DEFAULT_CACHE_TTL_SECONDS = 900
export class GeminiHandler implements ApiHandler {
private options: ApiHandlerOptions