2023-09-11 17:09:41 +00:00
|
|
|
namespace BotSharp.Abstraction.Conversations.Models;
|
|
|
|
|
|
|
|
|
|
public class IncomingMessageModel
|
|
|
|
|
{
|
|
|
|
|
public string Text { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public virtual string Channel { get; set; } = string.Empty;
|
|
|
|
|
|
2023-09-18 08:35:02 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Completion Provider
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("provider")]
|
|
|
|
|
public virtual string? Provider { get; set; } = null;
|
|
|
|
|
|
2023-09-11 17:09:41 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Model name
|
|
|
|
|
/// </summary>
|
2023-09-13 10:08:34 +00:00
|
|
|
[JsonPropertyName("model")]
|
2023-09-18 08:35:02 +00:00
|
|
|
public virtual string? Model { get; set; } = null;
|
2023-09-11 17:09:41 +00:00
|
|
|
|
|
|
|
|
/// <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>();
|
|
|
|
|
}
|