From a557d742cc60dcbd999d71addd67868047d68201 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 18:04:25 +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/ask.py | 2 +- packages/jupyter-ai/jupyter_ai/chat_handlers/default.py | 2 +- packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py | 2 +- packages/jupyter-ai/jupyter_ai/completions/handlers/default.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/ask.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/ask.py index 128a31326..c2d657e69 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/ask.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/ask.py @@ -45,7 +45,7 @@ def create_llm_chain( ): unified_parameters = { **provider_params, - **(self.get_model_parameters(provider, provider_params)) + **(self.get_model_parameters(provider, provider_params)), } self.llm = provider(**unified_parameters) memory = ConversationBufferWindowMemory( diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py index bcd257632..8352a8f8d 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/default.py @@ -25,7 +25,7 @@ def create_llm_chain( ): unified_parameters = { **provider_params, - **(self.get_model_parameters(provider, provider_params)) + **(self.get_model_parameters(provider, provider_params)), } llm = provider(**unified_parameters) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py index d61820445..539a74159 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/generate.py @@ -238,7 +238,7 @@ def create_llm_chain( ): unified_parameters = { **provider_params, - **(self.get_model_parameters(provider, provider_params)) + **(self.get_model_parameters(provider, provider_params)), } llm = provider(**unified_parameters) diff --git a/packages/jupyter-ai/jupyter_ai/completions/handlers/default.py b/packages/jupyter-ai/jupyter_ai/completions/handlers/default.py index 59e4b578a..eb03df156 100644 --- a/packages/jupyter-ai/jupyter_ai/completions/handlers/default.py +++ b/packages/jupyter-ai/jupyter_ai/completions/handlers/default.py @@ -30,7 +30,7 @@ def create_llm_chain( ): unified_parameters = { **provider_params, - **(self.get_model_parameters(provider, provider_params)) + **(self.get_model_parameters(provider, provider_params)), } llm = provider(**unified_parameters)