Add prompt caching data for older claude 3.5 sonnet model

This commit is contained in:
Saoud Rizwan
2024-10-23 03:27:36 -04:00
parent fbd3a64123
commit e9c485ab5a

View File

@@ -594,6 +594,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
switch (rawModel.id) { switch (rawModel.id) {
case "anthropic/claude-3.5-sonnet": case "anthropic/claude-3.5-sonnet":
case "anthropic/claude-3.5-sonnet:beta": case "anthropic/claude-3.5-sonnet:beta":
case "anthropic/claude-3.5-sonnet-20240620":
case "anthropic/claude-3.5-sonnet-20240620:beta":
modelInfo.supportsPromptCache = true modelInfo.supportsPromptCache = true
modelInfo.cacheWritesPrice = 3.75 modelInfo.cacheWritesPrice = 3.75
modelInfo.cacheReadsPrice = 0.3 modelInfo.cacheReadsPrice = 0.3