-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: respect UI-configured dimension settings for code indexing #7283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1867,7 +1867,7 @@ export class ClineProvider | |
| codebaseIndexEmbedderProvider: codebaseIndexConfig?.codebaseIndexEmbedderProvider ?? "openai", | ||
| codebaseIndexEmbedderBaseUrl: codebaseIndexConfig?.codebaseIndexEmbedderBaseUrl ?? "", | ||
| codebaseIndexEmbedderModelId: codebaseIndexConfig?.codebaseIndexEmbedderModelId ?? "", | ||
| codebaseIndexEmbedderModelDimension: codebaseIndexConfig?.codebaseIndexEmbedderModelDimension ?? 1536, | ||
| codebaseIndexEmbedderModelDimension: codebaseIndexConfig?.codebaseIndexEmbedderModelDimension, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're now allowing
Could we add a test to ensure this hierarchy works correctly? |
||
| codebaseIndexOpenAiCompatibleBaseUrl: codebaseIndexConfig?.codebaseIndexOpenAiCompatibleBaseUrl, | ||
| codebaseIndexSearchMaxResults: codebaseIndexConfig?.codebaseIndexSearchMaxResults, | ||
| codebaseIndexSearchMinScore: codebaseIndexConfig?.codebaseIndexSearchMinScore, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch removing this hardcoded fallback! This was indeed preventing the UI-configured dimension from being used. However, I notice the PR description mentions TWO locations (line 1870 and lines 2059-2060), but I only see one change here. Did I miss updating the second location in the
getState()method around line 2060?