diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 80c5596743..a3fef42640 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1351,10 +1351,7 @@ export class ClineProvider extends EventEmitter implements historyPreviewCollapsed: historyPreviewCollapsed ?? false, condensingApiConfigId, customCondensingPrompt, - codebaseIndexModels: codebaseIndexModels ?? { - openai: {}, - ollama: {}, - }, + codebaseIndexModels: codebaseIndexModels ?? EMBEDDING_MODEL_PROFILES, codebaseIndexConfig: codebaseIndexConfig ?? { codebaseIndexEnabled: false, codebaseIndexQdrantUrl: "http://localhost:6333", @@ -1456,10 +1453,7 @@ export class ClineProvider extends EventEmitter implements // Explicitly add condensing settings condensingApiConfigId: stateValues.condensingApiConfigId, customCondensingPrompt: stateValues.customCondensingPrompt, - codebaseIndexModels: stateValues.codebaseIndexModels ?? { - openai: {}, - ollama: {}, - }, + codebaseIndexModels: stateValues.codebaseIndexModels ?? EMBEDDING_MODEL_PROFILES, codebaseIndexConfig: stateValues.codebaseIndexConfig ?? { codebaseIndexEnabled: false, codebaseIndexQdrantUrl: "http://localhost:6333",