Skip to content

Commit d774e6a

Browse files
committed
fix: remove hardcoded dimension fallback to respect UI settings
- Removed hardcoded fallback value (1536) from codebaseIndexEmbedderModelDimension in ClineProvider.ts - This allows the proper dimension resolution hierarchy to work: 1. User-configured dimension from UI settings 2. Model-specific defaults from embedding model profiles 3. System defaults handled by service factory - Fixes issue where UI-configured dimensions were being ignored Fixes #5754
1 parent 6fd261d commit d774e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ export class ClineProvider
18671867
codebaseIndexEmbedderProvider: codebaseIndexConfig?.codebaseIndexEmbedderProvider ?? "openai",
18681868
codebaseIndexEmbedderBaseUrl: codebaseIndexConfig?.codebaseIndexEmbedderBaseUrl ?? "",
18691869
codebaseIndexEmbedderModelId: codebaseIndexConfig?.codebaseIndexEmbedderModelId ?? "",
1870-
codebaseIndexEmbedderModelDimension: codebaseIndexConfig?.codebaseIndexEmbedderModelDimension ?? 1536,
1870+
codebaseIndexEmbedderModelDimension: codebaseIndexConfig?.codebaseIndexEmbedderModelDimension,
18711871
codebaseIndexOpenAiCompatibleBaseUrl: codebaseIndexConfig?.codebaseIndexOpenAiCompatibleBaseUrl,
18721872
codebaseIndexSearchMaxResults: codebaseIndexConfig?.codebaseIndexSearchMaxResults,
18731873
codebaseIndexSearchMinScore: codebaseIndexConfig?.codebaseIndexSearchMinScore,

0 commit comments

Comments
 (0)