diff --git a/pyproject.toml b/pyproject.toml index a2789082..3be5e49b 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 ab03fd47..2b69637d 100644 --- a/sgpt/handlers/handler.py +++ b/sgpt/handlers/handler.py @@ -22,6 +22,7 @@ completion = litellm.completion litellm.suppress_debug_info = True + additional_kwargs.pop("api_key") else: from openai import OpenAI