9 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 (2)
AzureAIInferenceChatClientTests.cs (2)
290FrequencyPenalty = 0.75f, 517FrequencyPenalty = 0.75f,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
269FrequencyPenalty = 0.75f,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
151result.FrequencyPenalty = options.FrequencyPenalty;
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
432FrequencyPenalty = 0.75f,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
120FrequencyPenalty = 3.0f,
14 references to FrequencyPenalty
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
239if (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)
299result.FrequencyPenalty = options.FrequencyPenalty;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
315if (options.FrequencyPenalty is float frequencyPenalty)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
241result.FrequencyPenalty = options.FrequencyPenalty;
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAISerializationTests.cs (4)
137Assert.Equal(0.75f, request.Options.FrequencyPenalty); 239Assert.Null(request.Options.FrequencyPenalty); 331Assert.Null(request.Options.FrequencyPenalty); 399Assert.Null(request.Options.FrequencyPenalty);