From e63afa6f4503b06edeabee939d8189b202785c7a Mon Sep 17 00:00:00 2001 From: Whitroom <1062015905@qq.com> Date: Wed, 12 Apr 2023 15:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E7=9A=84=E6=B3=A8=E9=87=8A?= 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 8997712..d706109 100644 --- a/api.py +++ b/api.py @@ -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