Browse Source

fix top_p float bug

jingyaogong 1 year ago
parent
commit
4a758564e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/serve_openai_api.py

+ 1 - 1
scripts/serve_openai_api.py

@@ -55,7 +55,7 @@ class ChatRequest(BaseModel):
     model: str
     model: str
     messages: list
     messages: list
     temperature: float = 0.7
     temperature: float = 0.7
-    top_p: int = 0.92
+    top_p: float = 0.92
     max_tokens: int = 8192
     max_tokens: int = 8192
     stream: bool = False
     stream: bool = False