8 implementations of Metadata
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\DelegatingEmbeddingGenerator.cs (1)
54public virtual EmbeddingGeneratorMetadata Metadata =>
Microsoft.Extensions.AI.Abstractions.Tests (1)
TestEmbeddingGenerator.cs (1)
13public EmbeddingGeneratorMetadata Metadata { get; } = new();
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
70public EmbeddingGeneratorMetadata Metadata { get; }
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
28public EmbeddingGeneratorMetadata MetadataMetadata => _floatService.Metadata;
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
57public EmbeddingGeneratorMetadata Metadata { get; }
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
96public EmbeddingGeneratorMetadata Metadata { get; }
Microsoft.Extensions.AI.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
13public EmbeddingGeneratorMetadata Metadata { get; } = new();
24 references to Metadata
Aspire.Azure.AI.OpenAI.Tests (3)
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (3)
40Assert.Equal("testdeployment1", generator.Metadata.ModelId); 70Assert.Equal("testdeployment1", generator.Metadata.ModelId); 98Assert.Equal("testdeployment1", generator.Metadata.ModelId);
Aspire.OpenAI.Tests (3)
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (3)
41Assert.Equal("testdeployment1", generator.Metadata.ModelId); 71Assert.Equal("testdeployment1", generator.Metadata.ModelId); 99Assert.Equal("testdeployment1", generator.Metadata.ModelId);
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
51EmbeddingGeneratorMetadata metadata = innerGenerator!.Metadata;
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\DelegatingEmbeddingGenerator.cs (1)
55InnerGenerator.Metadata;
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
AzureAIInferenceEmbeddingGeneratorTests.cs (3)
52Assert.Equal("az.ai.inference", embeddingGenerator.Metadata.ProviderName); 53Assert.Equal(endpoint, embeddingGenerator.Metadata.ProviderUri); 54Assert.Equal(model, embeddingGenerator.Metadata.ModelId);
Microsoft.Extensions.AI.Integration.Tests (4)
EmbeddingGeneratorIntegrationTests.cs (3)
53Assert.Equal(_embeddingGenerator.Metadata.ModelId, embeddings[0].ModelId); 74Assert.Equal(_embeddingGenerator.Metadata.ModelId, embedding.ModelId); 125Assert.Equal(embeddingGenerator.Metadata.ProviderUri?.Port, (int)activity.GetTagItem("server.port")!);
QuantizationEmbeddingGenerator.cs (1)
28public EmbeddingGeneratorMetadata Metadata => _floatService.Metadata;
Microsoft.Extensions.AI.Ollama.Tests (3)
OllamaEmbeddingGeneratorTests.cs (3)
53Assert.Equal("ollama", chatClient.Metadata.ProviderName); 54Assert.Equal(endpoint, chatClient.Metadata.ProviderUri); 55Assert.Equal(model, chatClient.Metadata.ModelId);
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIEmbeddingGeneratorTests.cs (6)
58Assert.Equal("openai", embeddingGenerator.Metadata.ProviderName); 59Assert.Equal(endpoint, embeddingGenerator.Metadata.ProviderUri); 60Assert.Equal(model, embeddingGenerator.Metadata.ModelId); 63Assert.Equal("openai", embeddingGenerator.Metadata.ProviderName); 64Assert.Equal(endpoint, embeddingGenerator.Metadata.ProviderUri); 65Assert.Equal(model, embeddingGenerator.Metadata.ModelId);