4 writes to ModelId
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\EmbeddingGenerationOptions.cs (1)
43ModelId = ModelId,
Microsoft.Extensions.AI.Abstractions.Tests (2)
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
44options.ModelId = "modelId"; 68options.ModelId = "model";
Microsoft.Extensions.AI.Tests (1)
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (1)
33EmbeddingGenerationOptions? providedOptions = nullProvidedOptions ? null : new() { ModelId = "test" };
15 references to ModelId
Microsoft.Extensions.AI (2)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (2)
87string? requestModelId = options?.ModelId ?? _modelId; 126string? modelId = options?.ModelId ?? _modelId;
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\EmbeddingGenerationOptions.cs (1)
43ModelId = ModelId,
Microsoft.Extensions.AI.Abstractions.Tests (5)
Embeddings\EmbeddingGenerationOptionsTests.cs (5)
16Assert.Null(options.ModelId); 21Assert.Null(clone.ModelId); 48Assert.Equal("modelId", options.ModelId); 53Assert.Equal("modelId", clone.ModelId); 77Assert.Equal("model", deserialized.ModelId);
Microsoft.Extensions.AI.AzureAIInference (3)
AzureAIInferenceEmbeddingGenerator.cs (3)
37/// The ID of the model to use. This can also be overridden per request via <see cref="EmbeddingGenerationOptions.ModelId"/>. 38/// Either this parameter or <see cref="EmbeddingGenerationOptions.ModelId"/> must provide a valid model ID. 166Model = options?.ModelId ?? Metadata.ModelId,
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
86string? requestModel = options?.ModelId ?? Metadata.ModelId;
Microsoft.Extensions.AI.Tests (3)
Embeddings\ConfigureOptionsEmbeddingGeneratorTests.cs (3)
55Assert.Null(options.ModelId); 59Assert.Equal(providedOptions!.ModelId, options.ModelId);