From 6f8528a5346c75ddfe05abcc3f43e6076dd97791 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 20 May 2024 14:52:29 -0700 Subject: [PATCH] don't overwrite all models in onboarding --- core/config/onboarding.ts | 1 + core/indexing/LanceDbIndex.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/core/config/onboarding.ts b/core/config/onboarding.ts index 23ee0ee94..49ef17786 100644 --- a/core/config/onboarding.ts +++ b/core/config/onboarding.ts @@ -82,6 +82,7 @@ export function setupLocalMode( provider: "ollama", model: "AUTODETECT", }, + ...config.models.filter((model) => model.provider !== "free-trial"), ], tabAutocompleteModel: { title: "Starcoder 3b", diff --git a/core/indexing/LanceDbIndex.ts b/core/indexing/LanceDbIndex.ts index 83c355bba..d7cbacc16 100644 --- a/core/indexing/LanceDbIndex.ts +++ b/core/indexing/LanceDbIndex.ts @@ -321,6 +321,7 @@ export class LanceDbIndex implements CodebaseIndex { const tableName = this.tableNameForTag(tag); const tableNames = await db.tableNames(); if (!tableNames.includes(tableName)) { + console.warn("Table not found in LanceDB", tableName); return []; }