improve for python3.8 3.9
This commit is contained in:
parent
fa9f62b42c
commit
417389c5f6
@ -325,7 +325,7 @@ async def completions(body: CompletionBody, request: Request):
|
|||||||
|
|
||||||
|
|
||||||
class EmbeddingsBody(BaseModel):
|
class EmbeddingsBody(BaseModel):
|
||||||
input: str | List[str] | List[List[int]]
|
input: str or List[str] or List[List[int]]
|
||||||
model: str = "rwkv"
|
model: str = "rwkv"
|
||||||
encoding_format: str = None
|
encoding_format: str = None
|
||||||
fast_mode: bool = False
|
fast_mode: bool = False
|
||||||
|
Loading…
Reference in New Issue
Block a user