Skip to content

Commit

Permalink
fix codestral templating
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed May 29, 2024
1 parent 9702e6d commit 58691db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions core/llm/autodetect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ function autodetectTemplateType(model: string): TemplateType | undefined {
return "none";
}

if (lower.includes("codestral")) {
return "none";
}

if (lower.includes("alpaca") || lower.includes("wizard")) {
return "alpaca";
}
Expand Down Expand Up @@ -303,6 +307,8 @@ function autodetectPromptTemplates(
editTemplate = null;
} else if (templateType) {
editTemplate = gptEditPrompt;
} else if (model.includes("codestral")) {
editTemplate = osModelsEditPrompt;
}

if (editTemplate !== null) {
Expand Down
4 changes: 0 additions & 4 deletions extensions/vscode/src/webviewProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ export class VsCodeWebviewProtocol
if (message.includes("exceeded")) {
message +=
" To keep using Continue, you can set up a local model or use your own API key.";
} else if (message.includes("upgrade Continue")) {
} else {
message +=
" To avoid rate limiting, you can set up a local model or use your own API key.";
}

vscode.window
Expand Down

0 comments on commit 58691db

Please sign in to comment.