8 references to new
Microsoft.Extensions.AI.Abstractions.Tests (3)
Embeddings\EmbeddingGeneratorMetadataTests.cs (2)
14EmbeddingGeneratorMetadata metadata = new(null, null, null, null); 25EmbeddingGeneratorMetadata metadata = new("providerName", uri, "theModel", 42);
TestEmbeddingGenerator.cs (1)
18public EmbeddingGeneratorMetadata Metadata { get; set; } = new();
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
66Metadata = new("az.ai.inference", providerUrl, modelId, dimensions);
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
53Metadata = new("ollama", endpoint, modelId);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
93new(providerName, Uri.TryCreate(providerUrl, UriKind.Absolute, out Uri? providerUri) ? providerUri : null, model, dimensions);
Microsoft.Extensions.AI.Tests (2)
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
33Metadata = new("testservice", new Uri("http://localhost:12345/something"), "amazingmodel", 384),
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
18public EmbeddingGeneratorMetadata Metadata { get; set; } = new();