添加接口文档的注释

pull/547/head
Whitroom 2023-04-12 15:28:24 +08:00
parent 02d4d3dd2c
commit e63afa6f45
1 changed files with 1 additions and 1 deletions

2
api.py
View File

@ -36,7 +36,7 @@ def torch_gc():
app = FastAPI(lifespan=lifespan)
class Item(BaseModel):
prompt: str
prompt: str = "你好"
history: list[tuple[str, str]] = [[]]
max_length: int = 2048
top_p: float = 0.7