Skip to content

Commit

Permalink
Merge pull request #59 from milbk/main
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher authored Aug 3, 2024
2 parents 797b955 + 2ff4320 commit 724782d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Models/RequestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,15 @@ public partial class RequestOptions
[JsonPropertyName("top_p")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public float? TopP { get; set; }


/// <summary>
/// Alternative to the top_p, and aims to ensure a balance of quality and variety.min_p represents the minimum
/// probability for a token to be considered, relative to the probability of the most likely token.For
/// example, with min_p=0.05 and the most likely token having a probability of 0.9, logits with a value less
/// than 0.05*0.9=0.045 are filtered out. (Default: 0.0)
/// </summary>
[JsonPropertyName("min_p")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public float? MinP { get; set; }
}

0 comments on commit 724782d

Please sign in to comment.