alias completion to completions

This commit is contained in:
Concedo 2024-07-12 22:53:15 +08:00
parent 1bf07ceabd
commit f529ef26df

View file

@ -1504,7 +1504,7 @@ Enter Prompt:<br>
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'):