修改默认值,以便接口文档直接调用

pull/547/head
Whitroom 2023-04-12 15:34:29 +08:00
parent e63afa6f45
commit be2c943b61
1 changed files with 1 additions and 1 deletions

2
api.py
View File

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