Skip to content

Commit aac2f54

Browse files
Option for LiteLLM to manage API keys (#604)
1 parent ab6b475 commit aac2f54

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies = [
3939

4040
[project.optional-dependencies]
4141
litellm = [
42-
"litellm == 1.24.5"
42+
"litellm == 1.42.5"
4343
]
4444
test = [
4545
"pytest >= 7.2.2, < 8.0.0",

sgpt/handlers/handler.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
completion = litellm.completion
2525
litellm.suppress_debug_info = True
26+
additional_kwargs.pop("api_key")
2627
else:
2728
from openai import OpenAI
2829

0 commit comments

Comments
 (0)