mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-07-03 14:10:18 +02:00
Option for LiteLLM to manage API keys (#604)
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
@@ -23,6 +23,7 @@ if use_litellm:
|
||||
|
||||
completion = litellm.completion
|
||||
litellm.suppress_debug_info = True
|
||||
additional_kwargs.pop("api_key")
|
||||
else:
|
||||
from openai import OpenAI
|
||||
|
||||
|
||||
Reference in New Issue
Block a user