Disable OpenRouter Gemini caching for now (#2890)

This commit is contained in:
Matt Rubens 2025-04-23 16:46:52 -04:00 committed by GitHub
parent 03925d25b0
commit a53f604e3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -290,11 +290,13 @@ export async function getOpenRouterModels(options?: ApiHandlerOptions) {
modelInfo.cacheReadsPrice = 0.03
modelInfo.maxTokens = 8192
break
/* TODO: uncomment once we confirm it's working
case rawModel.id.startsWith("google/gemini-2.5-pro-preview-03-25"):
case rawModel.id.startsWith("google/gemini-2.0-flash-001"):
case rawModel.id.startsWith("google/gemini-flash-1.5"):
modelInfo.supportsPromptCache = true
break
*/
default:
break
}