17 writes to Temperature
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
74Temperature = Temperature,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
68options.Temperature = 0.1f; 128options.Temperature = 0.1f;
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
AzureAIInferenceChatClientTests.cs (4)
156Temperature = 0.5f, 224Temperature = 0.5f, 287Temperature = 0.5f, 516Temperature = 0.25f,
Microsoft.Extensions.AI.Ollama.Tests (5)
OllamaChatClientIntegrationTests.cs (2)
46Temperature = 0, 81Temperature = 0,
OllamaChatClientTests.cs (3)
116Temperature = 0.5f, 176Temperature = 0.5f, 268Temperature = 0.25f,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
155result.Temperature = options.Temperature;
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIChatClientTests.cs (3)
186Temperature = 0.5f, 258Temperature = 0.5f, 431Temperature = 0.25f,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
127Temperature = 6.0f,
18 references to Temperature
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
259if (options.Temperature is float temperature)
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
74Temperature = Temperature,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatOptionsTests.cs (5)
16Assert.Null(options.Temperature); 31Assert.Null(clone.Temperature); 82Assert.Equal(0.1f, options.Temperature); 97Assert.Equal(0.1f, clone.Temperature); 151Assert.Equal(0.1f, deserialized.Temperature);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
303result.Temperature = options.Temperature;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
335if (options.Temperature is float temperature)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
245result.Temperature = options.Temperature;
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAISerializationTests.cs (6)
38Assert.Equal(0.5f, request.Options.Temperature); 71Assert.Equal(0.5f, request.Options.Temperature); 136Assert.Equal(0.25f, request.Options.Temperature); 238Assert.Null(request.Options.Temperature); 330Assert.Null(request.Options.Temperature); 398Assert.Null(request.Options.Temperature);
Microsoft.ML.GenAI.Core (2)
CausalLMPipelineChatClient.cs (2)
45temperature: options?.Temperature ?? 0.7f, 69temperature: options?.Temperature ?? 0.7f,