5 writes to TopK
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
77TopK = TopK,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
71options.TopK = 42; 131options.TopK = 42;
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
289TopK = 40,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
124TopK = 7,
11 references to TopK
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
264if (options.TopK is int topK)
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
77TopK = TopK,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatOptionsTests.cs (5)
19Assert.Null(options.TopK); 34Assert.Null(clone.TopK); 85Assert.Equal(42, options.TopK); 100Assert.Equal(42, clone.TopK); 154Assert.Equal(42, deserialized.TopK);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
315if (options.TopK is int topK)
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
345if (options.TopK is int topK)
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAISerializationTests.cs (2)
40Assert.Null(request.Options.TopK); 73Assert.Null(request.Options.TopK);