6 writes to Usage
Microsoft.Extensions.AI.Abstractions.Tests (2)
Embeddings\GeneratedEmbeddingsTests.cs (2)
99embeddings.Usage = usage; 101embeddings.Usage = null;
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
101result.Usage = new()
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
42Usage = embeddings.Usage, 75Usage = embeddings.Usage,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
125Usage = new()
6 references to Usage
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
170if (embeddings.Usage?.InputTokenCount is int i)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Embeddings\GeneratedEmbeddingsTests.cs (3)
96Assert.Null(embeddings.Usage); 100Assert.Same(usage, embeddings.Usage); 102Assert.Null(embeddings.Usage);
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
42Usage = embeddings.Usage, 75Usage = embeddings.Usage,