Skip to content

Commit

Permalink
Fix duplicate assignment of replicate_key in LiteLLMAIHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
randy-tsukemen committed Apr 21, 2024
1 parent e429c5d commit 7a9e737
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pr_agent/algo/ai_handlers/litellm_ai_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ def __init__(self):
litellm.cohere_key = get_settings().cohere.key
if get_settings().get("REPLICATE.KEY", None):
litellm.replicate_key = get_settings().replicate.key
if get_settings().get("REPLICATE.KEY", None):
litellm.replicate_key = get_settings().replicate.key
if get_settings().get("HUGGINGFACE.KEY", None):
litellm.huggingface_key = get_settings().huggingface.key
if get_settings().get("HUGGINGFACE.API_BASE", None) and 'huggingface' in get_settings().config.model:
Expand Down

0 comments on commit 7a9e737

Please sign in to comment.