Skip to content

Commit de70d0e

Browse files
Let litellm fetch api keys on it's own
1 parent 7678afe commit de70d0e

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
@@ -22,6 +22,7 @@
2222

2323
completion = litellm.completion
2424
litellm.suppress_debug_info = True
25+
additional_kwargs.pop("api_key")
2526
else:
2627
from openai import OpenAI
2728

0 commit comments

Comments
 (0)