Skip to content

Commit

Permalink
Update baichuan.py to support max_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cddc committed May 11, 2024
1 parent 426f9c4 commit 8a10765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate/chat_completion/models/baichuan.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class BaichuanMessage(TypedDict):

class BaichuanChatParameters(ModelParameters):
temperature: Optional[Temperature] = None
max_tokens: Optional[PositiveInt] = None
top_k: Optional[Annotated[int, Field(ge=0)]] = None
top_p: Optional[Probability] = None
search: Optional[bool] = Field(default=None, alias='with_search_enhance')
Expand Down

0 comments on commit 8a10765

Please sign in to comment.