We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f8764 commit 007f3dfCopy full SHA for 007f3df
src/api/providers/fetchers/openrouter.ts
@@ -63,7 +63,7 @@ export async function getOpenRouterModels(options?: ApiHandlerOptions) {
63
: undefined
64
65
// Disable prompt caching for Gemini models for now.
66
- const supportsPromptCache = !!cacheWritesPrice && !!cacheWritesPrice && !rawModel.id.startsWith("google")
+ const supportsPromptCache = !!cacheWritesPrice && !!cacheReadsPrice && !rawModel.id.startsWith("google")
67
68
const modelInfo: ModelInfo = {
69
maxTokens: rawModel.top_provider?.max_completion_tokens,
0 commit comments