From f529ef26dfb7c152b3366a6f9335e9c8cd669a84 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 12 Jul 2024 22:53:15 +0800 Subject: [PATCH] alias completion to completions --- koboldcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 91cf13fd6..13369bbfc 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -1504,7 +1504,7 @@ Enter Prompt:
api_format = 2 sse_stream_flag = True - if self.path.endswith('/v1/completions'): + if self.path.endswith('/v1/completions') or self.path.endswith('/v1/completion'): api_format = 3 if self.path.endswith('/v1/chat/completions'):