Skip to content

Commit

Permalink
Option for LiteLLM to manage API keys (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekbhakat authored Aug 29, 2024
1 parent ab6b475 commit aac2f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions sgpt/handlers/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

completion = litellm.completion
litellm.suppress_debug_info = True
additional_kwargs.pop("api_key")
else:
from openai import OpenAI

Expand Down

0 comments on commit aac2f54

Please sign in to comment.