Skip to content

Commit 980bddb

Browse files
authored
Add prompt caching indicator to grok 3 (RooCodeInc#4139)
* Add prompt caching indicator to grok 3 * Create seven-insects-shop.md
1 parent 78be287 commit 980bddb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/seven-insects-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Add prompt caching indicator to grok 3

src/core/controller/models/refreshOpenRouterModels.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ export async function refreshOpenRouterModels(
9999
modelInfo.cacheWritesPrice = 0.14
100100
modelInfo.cacheReadsPrice = 0.014
101101
break
102+
case "x-ai/grok-3-beta":
103+
modelInfo.supportsPromptCache = true
104+
modelInfo.cacheWritesPrice = 0
105+
modelInfo.cacheReadsPrice = 0
106+
break
102107
default:
103108
if (rawModel.id.startsWith("openai/")) {
104109
modelInfo.cacheReadsPrice = parsePrice(rawModel.pricing?.input_cache_read)

0 commit comments

Comments
 (0)