From 7a9e73702d9342e39e4ca5c17c979275347de726 Mon Sep 17 00:00:00 2001 From: "Randy, Huang" Date: Sun, 21 Apr 2024 14:47:25 +0900 Subject: [PATCH] Fix duplicate assignment of replicate_key in LiteLLMAIHandler --- pr_agent/algo/ai_handlers/litellm_ai_handler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pr_agent/algo/ai_handlers/litellm_ai_handler.py b/pr_agent/algo/ai_handlers/litellm_ai_handler.py index 4acd55ea3..76e1639e5 100644 --- a/pr_agent/algo/ai_handlers/litellm_ai_handler.py +++ b/pr_agent/algo/ai_handlers/litellm_ai_handler.py @@ -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: