10 writes to MaxOutputTokens
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
75MaxOutputTokens = MaxOutputTokens,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
69options.MaxOutputTokens = 2; 129options.MaxOutputTokens = 2;
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
142MaxOutputTokens = 10, 204MaxOutputTokens = 20,
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaChatClientTests.cs (2)
115MaxOutputTokens = 10, 175MaxOutputTokens = 20,
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
185MaxOutputTokens = 10, 251MaxOutputTokens = 20,
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
111MaxOutputTokens = 123,
12 references to MaxOutputTokens
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
243if (options.MaxOutputTokens is int maxTokens)
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
75MaxOutputTokens = MaxOutputTokens,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatOptionsTests.cs (5)
17Assert.Null(options.MaxOutputTokens); 32Assert.Null(clone.MaxOutputTokens); 83Assert.Equal(2, options.MaxOutputTokens); 98Assert.Equal(2, clone.MaxOutputTokens); 152Assert.Equal(2, deserialized.MaxOutputTokens);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
298result.MaxTokens = options.MaxOutputTokens;
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
299if (options.MaxOutputTokens is int maxOutputTokens)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
404result.MaxOutputTokenCount = options.MaxOutputTokens;
Microsoft.ML.GenAI.Core (2)
CausalLMPipelineChatClient.cs (2)
44maxLen: options?.MaxOutputTokens ?? 1024, 68maxLen: options?.MaxOutputTokens ?? 1024,