This commit is contained in:
Saoud Rizwan
2024-10-04 20:34:37 -04:00
parent c920f4e2ed
commit ba6546e0b8
3 changed files with 12 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ export function validateModelId(
case "openrouter":
const modelId = apiConfiguration.openRouterModelId
if (!modelId) {
return "You must provide a model ID. If you're not sure which model to choose, Cline works best with Claude 3.5 Sonnet (anthropic/claude-3.5-sonnet)."
return "You must provide a model ID."
}
if (openRouterModels && !Object.keys(openRouterModels).includes(modelId)) {
return "The model ID you provided is not available. Please choose a different model."