improve for python3.8 3.9

This commit is contained in:
josc146 2023-06-29 20:11:40 +08:00
parent fa9f62b42c
commit 417389c5f6

View File

@ -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