Skip to content

Commit 007f3df

Browse files
committed
Thanks ellipsis
1 parent d1f8764 commit 007f3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/fetchers/openrouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function getOpenRouterModels(options?: ApiHandlerOptions) {
6363
: undefined
6464

6565
// Disable prompt caching for Gemini models for now.
66-
const supportsPromptCache = !!cacheWritesPrice && !!cacheWritesPrice && !rawModel.id.startsWith("google")
66+
const supportsPromptCache = !!cacheWritesPrice && !!cacheReadsPrice && !rawModel.id.startsWith("google")
6767

6868
const modelInfo: ModelInfo = {
6969
maxTokens: rawModel.top_provider?.max_completion_tokens,

0 commit comments

Comments
 (0)