mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
openai extension: wrong frequency_penalty type (#4512)
This commit is contained in:
parent
881e8a6e70
commit
6c7aad11f3
@ -51,7 +51,7 @@ class CompletionRequestParams(BaseModel):
|
||||
logprobs: int | None = None
|
||||
max_tokens: int | None = 16
|
||||
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
|
||||
stream: bool | None = False
|
||||
suffix: str | None = None
|
||||
@ -82,7 +82,7 @@ class ChatCompletionRequestParams(BaseModel):
|
||||
logit_bias: dict | None = None
|
||||
max_tokens: int | None = None
|
||||
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
|
||||
stream: bool | None = False
|
||||
temperature: float | None = 1
|
||||
|
Loading…
Reference in New Issue
Block a user