7 writes to FrequencyPenalty
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
78FrequencyPenalty = FrequencyPenalty,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
72options.FrequencyPenalty = 0.4f; 132options.FrequencyPenalty = 0.4f;
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
318FrequencyPenalty = 0.75f,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
269FrequencyPenalty = 0.75f,
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
364FrequencyPenalty = 0.75f,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
110FrequencyPenalty = 3.0f,
10 references to FrequencyPenalty
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
238if (options.FrequencyPenalty is float frequencyPenalty)
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
78FrequencyPenalty = FrequencyPenalty,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatOptionsTests.cs (5)
20Assert.Null(options.FrequencyPenalty); 35Assert.Null(clone.FrequencyPenalty); 86Assert.Equal(0.4f, options.FrequencyPenalty); 101Assert.Equal(0.4f, clone.FrequencyPenalty); 155Assert.Equal(0.4f, deserialized.FrequencyPenalty);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
297result.FrequencyPenalty = options.FrequencyPenalty;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
294if (options.FrequencyPenalty is float frequencyPenalty)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
403result.FrequencyPenalty = options.FrequencyPenalty;