6 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)
139ModelId = response.Model,
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAISerializationTests.cs (1)
455ModelId = "gpt-4o-mini-2024-07-18",
18 references to ModelId
Microsoft.Extensions.AI (4)
ChatCompletion\ChatCompletion{T}.cs (1)
38ModelId = completion.ModelId;
ChatCompletion\OpenTelemetryChatClient.cs (3)
378if (completion.ModelId is not null) 380_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.Model, completion.ModelId); 428if (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)
164Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 662Assert.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 (1)
OpenAIModelMapper.ChatCompletion.cs (1)
58model: chatCompletion.ModelId,
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
194Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 541Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 640Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId); 1011Assert.Equal("gpt-4o-mini-2024-07-18", response.ModelId);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
65Assert.Equal(expectedCompletion.ModelId, response.ModelId);