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

Commit

Permalink
sync api Payload with additional useful settings in twinny extension
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-li1231 committed Sep 5, 2023
1 parent 0f30e0f commit 724e08f
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 724e08f

Please sign in to comment.