Skip to content

Commit

Permalink
remove _examples.py and remove @learned from defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchia committed Sep 25, 2024
1 parent 691cec8 commit 2b29429
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 136 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .base import BaseCommandContextProvider, ContextCommand, ContextProviderException
from .file import FileContextProvider
from .learned import LearnedContextProvider
133 changes: 0 additions & 133 deletions packages/jupyter-ai/jupyter_ai/context_providers/_examples.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Currently unused as it is duplicating the functionality of the /ask command.
# TODO: Rename "learned" to something better.
from typing import List

from jupyter_ai.chat_handlers.learn import Retriever
Expand Down
2 changes: 0 additions & 2 deletions packages/jupyter-ai/jupyter_ai/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from .context_providers import (
BaseCommandContextProvider,
FileContextProvider,
LearnedContextProvider,
)
from .handlers import (
ApiKeysHandler,
Expand Down Expand Up @@ -461,7 +460,6 @@ def _init_context_provders(self):
}
context_providers_clses = [
FileContextProvider,
LearnedContextProvider,
]
for context_provider_ep in context_providers_eps:
try:
Expand Down

0 comments on commit 2b29429

Please sign in to comment.