Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from allen-li1231/sync-api-settings
Browse files Browse the repository at this point in the history
Add useful payload parameters
  • Loading branch information
rjmacarthy authored Sep 6, 2023
2 parents 0f30e0f + 724e08f commit 1dbdaf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions abstractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ class Choice(BaseModel):


class Payload(BaseModel):
max_time: float = None
max_tokens: int = 100
num_return_sequences: int
one_line: bool = True
prompt: str
repetition_penalty: float = 1.
temperature: float = 0.1
top_k: int
top_p: float

0 comments on commit 1dbdaf0

Please sign in to comment.