9 writes to PresencePenalty
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
79PresencePenalty = PresencePenalty,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
73options.PresencePenalty = 0.5f; 133options.PresencePenalty = 0.5f;
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
291PresencePenalty = 0.5f, 518PresencePenalty = 0.5f,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
270PresencePenalty = 0.5f,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
154result.PresencePenalty = options.PresencePenalty;
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
433PresencePenalty = 0.5f,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
125PresencePenalty = 5.0f,
14 references to PresencePenalty
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
249if (options.PresencePenalty is float presencePenalty)
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
79PresencePenalty = PresencePenalty,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatOptionsTests.cs (5)
21Assert.Null(options.PresencePenalty); 36Assert.Null(clone.PresencePenalty); 87Assert.Equal(0.5f, options.PresencePenalty); 102Assert.Equal(0.5f, clone.PresencePenalty); 156Assert.Equal(0.5f, deserialized.PresencePenalty);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
302result.PresencePenalty = options.PresencePenalty;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
325if (options.PresencePenalty is float presencePenalty)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
244result.PresencePenalty = options.PresencePenalty;
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAISerializationTests.cs (4)
138Assert.Equal(0.5f, request.Options.PresencePenalty); 240Assert.Null(request.Options.PresencePenalty); 332Assert.Null(request.Options.PresencePenalty); 400Assert.Null(request.Options.PresencePenalty);