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

@@ -207,11 +207,17 @@ const OpenRouterModelPicker: React.FC = () => {
marginTop: 0,
color: "var(--vscode-descriptionForeground)",
}}>
You can use{" "}
The extension automatically fetches the latest list of models available on{" "}
<VSCodeLink style={{ display: "inline", fontSize: "inherit" }} href="https://openrouter.ai/models">
any model on OpenRouter
</VSCodeLink>{" "}
with Cline. (Try searching for "free" to see if there are free models currently available.)
OpenRouter.
</VSCodeLink>
If you're unsure which model to choose, Cline works best with{" "}
<VSCodeLink
style={{ display: "inline", fontSize: "inherit" }}
onClick={() => handleModelChange("anthropic/claude-3.5-sonnet:beta")}>
anthropic/claude-3.5-sonnet:beta.
</VSCodeLink>
You can also try searching for "free" to see if there are any free models currently available.
</p>
)}
</>

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."