5 writes to Dimensions
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\EmbeddingGenerationOptions.cs (1)
44Dimensions = Dimensions,
Microsoft.Extensions.AI.Abstractions.Tests (4)
Embeddings\EmbeddingGenerationOptionsTests.cs (4)
30Assert.Throws<ArgumentOutOfRangeException>("value", () => options.Dimensions = 0); 31Assert.Throws<ArgumentOutOfRangeException>("value", () => options.Dimensions = -1); 45options.Dimensions = 1536; 70options.Dimensions = 1536;
8 references to Dimensions
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\EmbeddingGenerationOptions.cs (1)
44Dimensions = Dimensions,
Microsoft.Extensions.AI.Abstractions.Tests (5)
Embeddings\EmbeddingGenerationOptionsTests.cs (5)
18Assert.Null(options.Dimensions); 23Assert.Null(clone.Dimensions); 49Assert.Equal(1536, options.Dimensions); 54Assert.Equal(1536, clone.Dimensions); 78Assert.Equal(1536, deserialized.Dimensions);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
165Dimensions = options?.Dimensions ?? _dimensions,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
144Dimensions = options?.Dimensions ?? _dimensions,