Browse Source

fix top_p float bug

jingyaogong 1 năm trước cách đây
mục cha
commit
4a758564e4
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      scripts/serve_openai_api.py

+ 1 - 1
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