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