From 81b504e8c5c4b22af1b99d6897067bd4ce917aa9 Mon Sep 17 00:00:00 2001 From: kingbri Date: Fri, 5 Jan 2024 16:38:39 -0500 Subject: [PATCH] OAI: Fix typical alias AliasChoices takes strings, not an array. Signed-off-by: kingbri --- OAI/types/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OAI/types/common.py b/OAI/types/common.py index 8ffe8f58..b18e9d71 100644 --- a/OAI/types/common.py +++ b/OAI/types/common.py @@ -78,7 +78,7 @@ class CommonCompletionRequest(BaseModel): # Aliased variables typical: Optional[float] = Field( - default=1.0, validation_alias=AliasChoices(["typical", "typical_p"]) + default=1.0, validation_alias=AliasChoices("typical", "typical_p") ) penalty_range: Optional[int] = Field(