mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
Fix duplicate assignment of replicate_key in LiteLLMAIHandler
This commit is contained in:
@ -54,8 +54,6 @@ class LiteLLMAIHandler(BaseAiHandler):
|
|||||||
litellm.cohere_key = get_settings().cohere.key
|
litellm.cohere_key = get_settings().cohere.key
|
||||||
if get_settings().get("REPLICATE.KEY", None):
|
if get_settings().get("REPLICATE.KEY", None):
|
||||||
litellm.replicate_key = get_settings().replicate.key
|
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):
|
if get_settings().get("HUGGINGFACE.KEY", None):
|
||||||
litellm.huggingface_key = get_settings().huggingface.key
|
litellm.huggingface_key = get_settings().huggingface.key
|
||||||
if get_settings().get("HUGGINGFACE.API_BASE", None) and 'huggingface' in get_settings().config.model:
|
if get_settings().get("HUGGINGFACE.API_BASE", None) and 'huggingface' in get_settings().config.model:
|
||||||
|
Reference in New Issue
Block a user