BotSharp/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Embeddings/EmbeddingInputModel.cs

14 lines
333 B
C#
Raw Normal View History

2024-07-01 02:14:02 +00:00
using System.Text.Json.Serialization;
namespace BotSharp.OpenAPI.ViewModels.Embeddings;
public class EmbeddingInputModel : MessageConfig
{
[JsonPropertyName("texts")]
public IEnumerable<string> Texts { get; set; } = new List<string>();
[JsonPropertyName("dimension")]
2024-08-22 15:15:05 +00:00
public int Dimension { get; set; } = 3072;
2024-07-01 02:14:02 +00:00
}