Skip to content

Commit

Permalink
Add TongYiChatOptions repetitionPenalty parameter build (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangqian9158 authored Jun 13, 2024
1 parent 79bca1e commit c21921d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,11 @@ public Builder withTopK(Integer topK) {
return this;
}

public Builder withRepetitionPenalty(Double repetitionPenalty) {
this.options.repetitionPenalty = repetitionPenalty;
return this;
}

public TongYiChatOptions build() {

return this.options;
Expand Down

0 comments on commit c21921d

Please sign in to comment.