BotSharp/src/Infrastructure/BotSharp.Abstraction/Models/MessageConfig.cs

33 lines
988 B
C#
Raw Normal View History

2023-10-27 15:18:48 +00:00
namespace BotSharp.Abstraction.Models;
2024-01-29 01:33:40 +00:00
public class MessageConfig : TruncateMessageRequest
2023-10-27 15:18:48 +00:00
{
/// <summary>
/// Completion Provider
/// </summary>
[JsonPropertyName("provider")]
public virtual string? Provider { get; set; } = null;
/// <summary>
/// Model name
/// </summary>
[JsonPropertyName("model")]
public virtual string? Model { get; set; } = null;
/// <summary>
/// The sampling temperature to use that controls the apparent creativity of generated completions.
/// </summary>
public float Temperature { get; set; } = 0.5f;
/// <summary>
/// An alternative value to Temperature, called nucleus sampling, that causes
/// the model to consider the results of the tokens with probability mass.
/// </summary>
public float SamplingFactor { get; set; } = 0.5f;
/// <summary>
/// Conversation states from input
/// </summary>
public List<string> States { get; set; } = new List<string>();
}