Skip to content

Commit

Permalink
TopP, TopK to double
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Mar 8, 2024
1 parent 4edb6d6 commit 87c983a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Claudia/MessageRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ public class MessageRequest
/// Recommended for advanced use cases only. You usually only need to use temperature.
/// </summary>
[JsonPropertyName("top_p")]
public int? TopP { get; init; }
public double? TopP { get; init; }

/// <summary>
/// Only sample from the top K options for each subsequent token.
/// Used to remove "long tail" low probability responses.
/// Recommended for advanced use cases only. You usually only need to use temperature.
/// </summary>
[JsonPropertyName("top_k")]
public int? TopK { get; init; }
public double? TopK { get; init; }

public override string ToString()
{
Expand Down

0 comments on commit 87c983a

Please sign in to comment.