From 6eaf6487a4d8301b981036bfa53976546eb6694f Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 4 Jul 2024 19:28:48 +0200 Subject: [PATCH] make sure to reset known embeddings models (#219994) --- src/vs/workbench/api/common/extHostEmbedding.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/workbench/api/common/extHostEmbedding.ts b/src/vs/workbench/api/common/extHostEmbedding.ts index f99cd387c62c1..4c712aee9e8f4 100644 --- a/src/vs/workbench/api/common/extHostEmbedding.ts +++ b/src/vs/workbench/api/common/extHostEmbedding.ts @@ -39,6 +39,7 @@ export class ExtHostEmbeddings implements ExtHostEmbeddingsShape { this._provider.set(handle, { id: embeddingsModel, provider }); return toDisposable(() => { + this._allKnownModels.delete(embeddingsModel); this._proxy.$unregisterEmbeddingProvider(handle); this._provider.delete(handle); });