From dd0802e13456ee2e563fc322bc67adbbdcfec6d1 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 11 Sep 2024 12:32:15 -0700 Subject: [PATCH] rewrite map --- core/config/default.ts | 6 ------ extensions/vscode/src/commands.ts | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/core/config/default.ts b/core/config/default.ts index 66b1075b0..7630bf829 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -91,12 +91,6 @@ export const defaultSlashCommandsJetBrains = [ ]; export const defaultConfig: SerializedContinueConfig = { - /** - * Add Sonnet + Codestral models into actual config - * No API key - [`Add your API key here`] - * - Chat model: add "No key" notification in model dropdown (beneath the model name, red alert, change trashcan to grey), free trial model comes first - * - Autocomplete: add check to short circuit if model is codestral and no api key, add no api key info in quickpick - */ models: [ { model: "claude-3-5-sonnet-20240620", diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 2c590a5bc..dffa4b273 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -664,9 +664,7 @@ const commandsMap: ( ) { ide.openFile(getConfigJsonPath()); } else if ( - autocompleteModels - .map((model) => model.title) - .includes(selectedOption) + autocompleteModels.some((model) => model.title === selectedOption) ) { new GlobalContext().update( "selectedTabAutocompleteModel",