7 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 (1)
AzureAIInferenceChatClientTests.cs (1)
319PresencePenalty = 0.5f,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
270PresencePenalty = 0.5f,
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIChatClientTests.cs (1)
365PresencePenalty = 0.5f,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
115PresencePenalty = 5.0f,
10 references to PresencePenalty
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
248if (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)
300result.PresencePenalty = options.PresencePenalty;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
304if (options.PresencePenalty is float presencePenalty)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
406result.PresencePenalty = options.PresencePenalty;