Skip to content

Commit

Permalink
OAI: Fix typical alias
Browse files Browse the repository at this point in the history
AliasChoices takes strings, not an array.

Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Jan 5, 2024
1 parent 2c57daf commit 81b504e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OAI/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 81b504e

Please sign in to comment.