From f626c31c1a239b4d997b3b1753defeb86f4043bc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 20:09:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/jupyter-ai/jupyter_ai/chat_handlers/base.py | 1 - packages/jupyter-ai/jupyter_ai/chat_handlers/default.py | 1 - packages/jupyter-ai/jupyter_ai/extension.py | 2 -- packages/jupyter-ai/jupyter_ai/handlers.py | 4 +--- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py index bfbf128b2..faa357087 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/base.py @@ -36,7 +36,6 @@ from jupyter_ai.context_providers import BaseContextProvider from jupyter_ai.handlers import RootChatHandler from jupyter_ai.history import BoundedChatHistory - from jupyter_ai.context_providers import BaseContextProvider from langchain_core.chat_history import BaseChatMessageHistory diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py index d5a3ad241..e178c3e4f 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py @@ -15,7 +15,6 @@ from ..context_providers import ContextProviderException from ..models import HumanChatMessage -from ..context_providers import ContextProviderException from .base import BaseChatHandler, SlashCommandRoutingType diff --git a/packages/jupyter-ai/jupyter_ai/extension.py b/packages/jupyter-ai/jupyter_ai/extension.py index 7f9485053..7f3e46cd6 100644 --- a/packages/jupyter-ai/jupyter_ai/extension.py +++ b/packages/jupyter-ai/jupyter_ai/extension.py @@ -22,7 +22,6 @@ HelpChatHandler, LearnChatHandler, ) -from .context_providers import FileContextProvider, LearnedContextProvider from .completions.handlers import DefaultInlineCompletionHandler from .config_manager import ConfigManager from .context_providers import FileContextProvider, LearnedContextProvider @@ -35,7 +34,6 @@ ModelProviderHandler, RootChatHandler, SlashCommandsInfoHandler, - AutocompleteOptionsHandler, ) from .history import BoundedChatHistory diff --git a/packages/jupyter-ai/jupyter_ai/handlers.py b/packages/jupyter-ai/jupyter_ai/handlers.py index 970fe1fef..359afce6d 100644 --- a/packages/jupyter-ai/jupyter_ai/handlers.py +++ b/packages/jupyter-ai/jupyter_ai/handlers.py @@ -36,8 +36,6 @@ ListProvidersResponse, ListSlashCommandsEntry, ListSlashCommandsResponse, - ListOptionsEntry, - ListOptionsResponse, Message, PendingMessage, UpdateConfigRequest, @@ -47,8 +45,8 @@ from jupyter_ai_magics.embedding_providers import BaseEmbeddingsProvider from jupyter_ai_magics.providers import BaseProvider - from .history import BoundedChatHistory from .context_providers import BaseContextProvider + from .history import BoundedChatHistory class ChatHistoryHandler(BaseAPIHandler):