UNIVPLMDataIntegration/Admin.NET/Admin.NET.Core/Ai/Models/LLMInputBody.cs

26 lines
504 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Admin.NET.Core.Ai.Models;
/// <summary>
/// LLM请求体
/// </summary>
public class LLMInputBody {
public string Model { get; set; }
public List<LLMInputMessage> Messages { get; set; }
}
/// <summary>
/// LLM请求体消息
/// </summary>
public class LLMInputMessage {
/// <summary>
/// 角色system、user、assistant
/// </summary>
public string Role { get; set; }
/// <summary>
/// 内容
/// </summary>
public string Content { get; set; }
}