diff --git a/pyproject.toml b/pyproject.toml index d53a0060..c4a8294a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ [project.optional-dependencies] litellm = [ - "litellm == 1.24.5" + "litellm == 1.42.5" ] test = [ "pytest >= 7.2.2, < 8.0.0", diff --git a/sgpt/handlers/handler.py b/sgpt/handlers/handler.py index c6302132..a17d8024 100644 --- a/sgpt/handlers/handler.py +++ b/sgpt/handlers/handler.py @@ -23,6 +23,7 @@ completion = litellm.completion litellm.suppress_debug_info = True + additional_kwargs.pop("api_key") else: from openai import OpenAI