Fix grok-code-fast-1 model information and add promo in Announcement banner (#5926)
* Fix grok-code-fast-1 info * Add call to action for trying free `grok-code-fast-1` in Announcement banner
This commit is contained in:
1 parent
5595d12dc3
commit
717be3f026
7 files changed
+124
-53
No files matched your search
@@ -189,6 +189,10 @@ export async function refreshOpenRouterModels(
|
||||
modelInfo.maxTokens = 8_192 // 128000 breaks context window truncation
|
||||
modelInfo.contextWindow = 272_000 // openrouter reports 400k but the input limit is actually 400k-128k
|
||||
break
|
||||
case "x-ai/grok-code-fast-1":
|
||||
modelInfo.supportsPromptCache = true
|
||||
modelInfo.cacheReadsPrice = 0.02
|
||||
break
|
||||
default:
|
||||
if (rawModel.id.startsWith("openai/")) {
|
||||
modelInfo.cacheReadsPrice = parsePrice(rawModel.pricing?.input_cache_read)
|
||||
|
||||
Reference in new issue
Block a user