From 5268a84bcc1444b1a2c690043e5bbe83009bdf70 Mon Sep 17 00:00:00 2001 From: BrianTeeman Date: Sun, 16 Jun 2024 17:28:30 +0100 Subject: [PATCH] repetition_penalty Correct the spelling of this variable. Fix spelling errors now will prevent issues going forward where people have to misspell something on purpose --- pr_agent/algo/ai_handlers/litellm_ai_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/algo/ai_handlers/litellm_ai_handler.py b/pr_agent/algo/ai_handlers/litellm_ai_handler.py index a1dfc6c9f..0e5501d35 100644 --- a/pr_agent/algo/ai_handlers/litellm_ai_handler.py +++ b/pr_agent/algo/ai_handlers/litellm_ai_handler.py @@ -64,7 +64,7 @@ def __init__(self): if get_settings().get("OLLAMA.API_BASE", None): litellm.api_base = get_settings().ollama.api_base self.api_base = get_settings().ollama.api_base - if get_settings().get("HUGGINGFACE.REPITITION_PENALTY", None): + if get_settings().get("HUGGINGFACE.REPETITION_PENALTY", None): self.repetition_penalty = float(get_settings().huggingface.repetition_penalty) if get_settings().get("VERTEXAI.VERTEX_PROJECT", None): litellm.vertex_project = get_settings().vertexai.vertex_project