-
Notifications
You must be signed in to change notification settings - Fork 213
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
Remove OpenAI embedding model support #4747
Conversation
@@ -32,7 +32,7 @@ export interface RemoteSearchProvider { | |||
isIgnored: boolean | |||
} | |||
|
|||
export type EmbeddingsProvider = 'sourcegraph' | 'openai' |
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.
Decided not to delete this enum in case we add more providers later on.
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.
One question about index file clean-up, other than that LGTM
provider: 'openai', | ||
endpoint: CODY_GATEWAY_PROD_ENDPOINT, | ||
// empty prefix to keep backwards compatibility | ||
indexPath: getIndexLibraryPath(''), |
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.
Should we have some code that deletes the old library here @janhartman ?
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.
Hm, good point. However, do we handle cleanups at all in Cody? I think we're just littering the users' machines all over the place 😓
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.
Not sure, but seeing that this is the "last clean-up", I think it would make sense to try?
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.
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.
Ok, in the meantime we can tell the users to delete everything (we will regenerate if needed)
@rafax should I update the changelog with this change? It shouldn't really affect users but still... |
I don't think we need to do that (we're removing a feature that is not available). |
Test plan
N/A