6 references to Length
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\ChatFinishReasonTests.cs (1)
47
Assert.Equal("length", ChatFinishReason.
Length
.Value);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
282
finishReason == CompletionsFinishReason.TokenLimitReached ? ChatFinishReason.
Length
:
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
225
"length" => ChatFinishReason.
Length
,
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaChatClientTests.cs (2)
125
Assert.Equal(ChatFinishReason.
Length
, response.FinishReason);
192
Assert.Equal(i < updates.Count - 1 ? null : ChatFinishReason.
Length
, updates[i].FinishReason);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
390
OpenAI.Chat.ChatFinishReason.Length => ChatFinishReason.
Length
,