From be2c943b61807b4e8c84cc12501eee493e001203 Mon Sep 17 00:00:00 2001 From: Whitroom <1062015905@qq.com> Date: Wed, 12 Apr 2023 15:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E4=BE=BF=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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