22 references to Stop
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatFinishReason.cs (2)
17/// <summary>The finish reason value. If null because `default(ChatFinishReason)` was used, the instance will behave like <see cref="Stop"/>.</summary> 31public string Value => _value ?? Stop.Value;
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\ChatFinishReasonTests.cs (1)
46Assert.Equal("stop", ChatFinishReason.Stop.Value);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
281finishReason == CompletionsFinishReason.Stopped ? ChatFinishReason.Stop :
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
AzureAIInferenceChatClientTests.cs (4)
153Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 222Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 331Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 415Assert.Equal(ChatFinishReason.Stop, response.FinishReason);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
226"stop" => ChatFinishReason.Stop,
Microsoft.Extensions.AI.Ollama.Tests (3)
OllamaChatClientTests.cs (3)
287Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 375Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 473Assert.Equal(ChatFinishReason.Stop, response.FinishReason);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
389OpenAI.Chat.ChatFinishReason.Stop => ChatFinishReason.Stop,
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIChatClientTests.cs (6)
196Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 271Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 377Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 469Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 562Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 913Assert.Equal(ChatFinishReason.Stop, response.FinishReason);
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
45FinishReason = ChatFinishReason.Stop, 75FinishReason = ChatFinishReason.Stop,
Microsoft.ML.GenAI.Core (1)
CausalLMPipelineChatClient.cs (1)
52FinishReason = ChatFinishReason.Stop,