Skip to content

Commit

Permalink
api key not needed to be set if use_litellm is true
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekbhakat committed Aug 30, 2024
1 parent 8edafa2 commit 8a2fc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgpt/handlers/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use_litellm = cfg.get("USE_LITELLM") == "true"
additional_kwargs = {
"timeout": int(cfg.get("REQUEST_TIMEOUT")),
"api_key": cfg.get("OPENAI_API_KEY"),
"api_key": cfg.get("OPENAI_API_KEY") if not use_litellm else None,
"base_url": None if base_url == "default" else base_url,
}

Expand Down

0 comments on commit 8a2fc2f

Please sign in to comment.