sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.71k stars 297 forks source link

do not even instantiate LocalEmbeddingsController for non-dotcom #5651

Closed sqs closed 1 month ago

sqs commented 1 month ago

The local embeddings service was not actually being used for enterprise (non-dotcom), but the class was being instantiated and an error message local embeddings are only available on Sourcegraph.com would show up in the output channel for enterprise users.

Test plan

Sign into s2 or another enterprise instance and confirm that there is no such error in the output channel and a breakpoint set in LocalEmbeddingsController's constructor is never hit.