1 write to ModelId
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatClientMetadata.cs (1)
17ModelId = modelId;
17 references to ModelId
Aspire.Azure.AI.OpenAI.Tests (3)
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (3)
40Assert.Equal("testdeployment1", client.Metadata.ModelId); 70Assert.Equal("testdeployment1", client.Metadata.ModelId); 98Assert.Equal("testdeployment1", client.Metadata.ModelId);
Aspire.OpenAI.Tests (3)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (3)
41Assert.Equal("testdeployment1", client.Metadata.ModelId); 71Assert.Equal("testdeployment1", client.Metadata.ModelId); 99Assert.Equal("testdeployment1", client.Metadata.ModelId);
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
59_modelId = metadata.ModelId;
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatClientMetadataTests.cs (2)
17Assert.Null(metadata.ModelId); 27Assert.Equal("theModel", metadata.ModelId);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
292Model = options?.ModelId ?? Metadata.ModelId ?? throw new InvalidOperationException("No model id was provided when either constructing the client or in the chat options.")
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
66Assert.Equal(model, chatClient.Metadata.ModelId);
Microsoft.Extensions.AI.Ollama (3)
OllamaChatClient.cs (3)
101ModelId = response.Model ?? options?.ModelId ?? Metadata.ModelId, 150string? modelId = chunk.Model ?? Metadata.ModelId; 263Model = options?.ModelId ?? Metadata.ModelId ?? string.Empty,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
76Assert.Equal(model, chatClient.Metadata.ModelId);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
77Assert.Equal(model, chatClient.Metadata.ModelId); 82Assert.Equal(model, chatClient.Metadata.ModelId);