diff --git a/api.py b/api.py index d706109..e827c53 100644 --- a/api.py +++ b/api.py @@ -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