2 references to IfLessThan
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\EmbeddingGenerationOptions.cs (1)
21
_ = Throw.
IfLessThan
(value.Value, 1, nameof(value));
Embeddings\GeneratedEmbeddings.cs (1)
30
_embeddings = new List<TEmbedding>(Throw.
IfLessThan
(capacity, 0));