diff --git a/src/api/providers/openrouter.ts b/src/api/providers/openrouter.ts index 07db28fb81..971f9fab73 100644 --- a/src/api/providers/openrouter.ts +++ b/src/api/providers/openrouter.ts @@ -38,6 +38,8 @@ export class OpenRouterHandler implements ApiHandler { // prompt caching: https://openrouter.ai/docs/prompt-caching // this is specifically for claude models (some models may 'support prompt caching' automatically without this) switch (model.id) { + case "anthropic/claude-3.7-sonnet": + case "anthropic/claude-3.7-sonnet:beta": case "anthropic/claude-3-7-sonnet": case "anthropic/claude-3-7-sonnet:beta": case "anthropic/claude-3.5-sonnet": @@ -91,6 +93,8 @@ export class OpenRouterHandler implements ApiHandler { // (models usually default to max tokens allowed) let maxTokens: number | undefined switch (model.id) { + case "anthropic/claude-3.7-sonnet": + case "anthropic/claude-3.7-sonnet:beta": case "anthropic/claude-3-7-sonnet": case "anthropic/claude-3-7-sonnet:beta": case "anthropic/claude-3.5-sonnet": diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 3eac593af2..d135372c60 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1415,6 +1415,8 @@ Here is the project's README to help you get started:\n\n${mcpDetails.readmeCont switch (rawModel.id) { case "anthropic/claude-3-7-sonnet": case "anthropic/claude-3-7-sonnet:beta": + case "anthropic/claude-3.7-sonnet": + case "anthropic/claude-3.7-sonnet:beta": case "anthropic/claude-3.5-sonnet": case "anthropic/claude-3.5-sonnet:beta": // NOTE: this needs to be synced with api.ts/openrouter default model info diff --git a/webview-ui/src/components/settings/OpenRouterModelPicker.tsx b/webview-ui/src/components/settings/OpenRouterModelPicker.tsx index 685e420f07..5f6020bbfa 100644 --- a/webview-ui/src/components/settings/OpenRouterModelPicker.tsx +++ b/webview-ui/src/components/settings/OpenRouterModelPicker.tsx @@ -228,8 +228,8 @@ const OpenRouterModelPicker: React.FC = ({ isPopup } If you're unsure which model to choose, Cline works best with{" "} handleModelChange("anthropic/claude-3-7-sonnet")}> - anthropic/claude-3-7-sonnet. + onClick={() => handleModelChange("anthropic/claude-3.7-sonnet")}> + anthropic/claude-3.7-sonnet. You can also try searching "free" for no-cost options currently available.