LLamaSharp/LLama.WebAPI/Models/SendMessageInput.cs

16 lines
342 B
C#
Raw Permalink Normal View History

2023-05-12 10:45:34 +08:00
namespace LLama.WebAPI.Models;
public class SendMessageInput
{
public string Text { get; set; } = "";
2023-05-12 10:45:34 +08:00
}
2023-06-24 19:43:32 +08:00
public class HistoryInput
{
public List<HistoryItem> Messages { get; set; } = [];
2023-06-24 19:43:32 +08:00
public class HistoryItem
{
public string Role { get; set; } = "User";
public string Content { get; set; } = "";
2023-06-24 19:43:32 +08:00
}
}