Closed abeatrix closed 4 days ago
CLOSE https://linear.app/sourcegraph/issue/CODY-2631/cody-requires-an-online-connection-and-an-open-vs-code-to-work-offline
This change adds support for an offline mode that allows users to only use Ollama models with Cody without the internet.
The key changes are:
offlineModeAuthStatus
SimpleChatPanelProvider
AuthProvider
newAuthStatus
isOfflineMode
syncModels
The screen below only shows up when there is a networking issue, e.g. when Cody does not have internet connection:
Use Cody Offline with Ollama
reviewing
CLOSE https://linear.app/sourcegraph/issue/CODY-2631/cody-requires-an-online-connection-and-an-open-vs-code-to-work-offline
This change adds support for an offline mode that allows users to only use Ollama models with Cody without the internet.
The key changes are:
offlineModeAuthStatus
object to represent the auth status in offline modeSimpleChatPanelProvider
andAuthProvider
to handle the 'offline' auth kindnewAuthStatus
function to return the offline mode auth status ifisOfflineMode
is truesyncModels
function to handle the offline mode case and not sync modelsThe screen below only shows up when there is a networking issue, e.g. when Cody does not have internet connection:
TO-DO
Test plan
Use Cody Offline with Ollama
Demo