openai extension: wrong frequency_penalty type (#4512)

This commit is contained in:
hronoas 2023-11-08 17:23:51 +03:00 committed by GitHub
parent 881e8a6e70
commit 6c7aad11f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ class CompletionRequestParams(BaseModel):
logprobs: int | None = None logprobs: int | None = None
max_tokens: int | None = 16 max_tokens: int | None = 16
n: int | None = Field(default=1, description="Unused parameter.") n: int | None = Field(default=1, description="Unused parameter.")
presence_penalty: int | None = 0 presence_penalty: float | None = 0
stop: str | List[str] | None = None stop: str | List[str] | None = None
stream: bool | None = False stream: bool | None = False
suffix: str | None = None suffix: str | None = None
@ -82,7 +82,7 @@ class ChatCompletionRequestParams(BaseModel):
logit_bias: dict | None = None logit_bias: dict | None = None
max_tokens: int | None = None max_tokens: int | None = None
n: int | None = Field(default=1, description="Unused parameter.") n: int | None = Field(default=1, description="Unused parameter.")
presence_penalty: int | None = 0 presence_penalty: float | None = 0
stop: str | List[str] | None = None stop: str | List[str] | None = None
stream: bool | None = False stream: bool | None = False
temperature: float | None = 1 temperature: float | None = 1