Compare commits

...
Author SHA1 Message Date
ToshiiandAra 192f9fa86c Update src/core/controller/index.ts
Co-authored-by: Ara <arafat.da.khan@gmail.com>
2025-05-04 11:34:44 -07:00
0xtoshii 02095bd79e changeset 2025-05-03 00:20:22 -07:00
0xtoshii 8b79448ac8 base 2025-05-03 00:19:36 -07:00
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
add open ai cache to ui
+10
View File
@@ -1415,6 +1415,16 @@ Here is the project's README to help you get started:\n\n${mcpDetails.readmeCont
modelInfo.cacheWritesPrice = parsePrice(rawModel.pricing?.input_cache_write)
modelInfo.cacheReadsPrice = parsePrice(rawModel.pricing?.input_cache_read)
break
default:
if (rawModel.id.startsWith("openai/")) {
modelInfo.cacheReadsPrice = parsePrice(rawModel.pricing?.input_cache_read)
if (modelInfo.cacheReadsPrice) {
modelInfo.supportsPromptCache = true
modelInfo.cacheWritesPrice = parsePrice(rawModel.pricing?.input_cache_write)
// openrouter charges no cache write pricing for openAI models
}
}
break
}
models[rawModel.id] = modelInfo