7 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)
13public EmbeddingGeneratorMetadata Metadata { get; } = 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 (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
13public EmbeddingGeneratorMetadata Metadata { get; } = new();