5 writes to ModelId
Microsoft.Extensions.AI (1)
ChatCompletion\ChatCompletion{T}.cs (1)
38ModelId = completion.ModelId;
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
94completion.ModelId ??= update.ModelId;
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatCompletionTests.cs (2)
94completion.ModelId = "modelId"; 211ModelId = "someModel",
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
137ModelId = response.Model,
17 references to ModelId
Microsoft.Extensions.AI (4)
ChatCompletion\ChatCompletion{T}.cs (1)
38ModelId = completion.ModelId;
ChatCompletion\OpenTelemetryChatClient.cs (3)
364if (completion.ModelId is not null) 366_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.Model, completion.ModelId); 398if (completions?.ModelId is string responseModel)
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
147ModelId = ModelId
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatCompletionTests.cs (3)
93Assert.Null(completion.ModelId); 95Assert.Equal("modelId", completion.ModelId); 159Assert.Equal("modelId", result.ModelId);
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (1)
66Assert.Equal("model123", completion.ModelId);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
151Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 413Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
123Assert.Equal("llama3.1", response.ModelId);
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
194Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 467Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 560Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 911Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
65Assert.Equal(expectedCompletion.ModelId, response.ModelId);