Skip to content

Commit 104dbdb

Browse files
committed
fix: remove hardcoded dimension fallback to respect UI settings
- Remove hardcoded 1536 fallback in getStateToPostToWebview() - Remove hardcoded fallback in getState() - Allow undefined dimension to flow through to service layer - Service layer properly resolves dimension from model profiles or user config Fixes #5754
1 parent 6fd261d commit 104dbdb

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)