From 417389c5f6c48a36831b79c0d90836dc0acc384d Mon Sep 17 00:00:00 2001 From: josc146 Date: Thu, 29 Jun 2023 20:11:40 +0800 Subject: [PATCH] improve for python3.8 3.9 --- backend-python/routes/completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend-python/routes/completion.py b/backend-python/routes/completion.py index af6f47c..135aa94 100644 --- a/backend-python/routes/completion.py +++ b/backend-python/routes/completion.py @@ -325,7 +325,7 @@ async def completions(body: CompletionBody, request: Request): class EmbeddingsBody(BaseModel): - input: str | List[str] | List[List[int]] + input: str or List[str] or List[List[int]] model: str = "rwkv" encoding_format: str = None fast_mode: bool = False