From 27c7bcc491e27d5efe1d97dcb3cb4ac806a49439 Mon Sep 17 00:00:00 2001 From: cn-farmer Date: Wed, 9 Apr 2025 09:56:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3#329=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/serve_openai_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/serve_openai_api.py b/scripts/serve_openai_api.py index 93a6df1..721d4e5 100644 --- a/scripts/serve_openai_api.py +++ b/scripts/serve_openai_api.py @@ -55,7 +55,7 @@ class ChatRequest(BaseModel): model: str messages: list temperature: float = 0.7 - top_p: int = 0.92 + top_p: float = 0.92 max_tokens: int = 8192 stream: bool = False