24 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)
283finishReason == CompletionsFinishReason.Stopped ? ChatFinishReason.Stop :
Microsoft.Extensions.AI.AzureAIInference.Tests (4)
AzureAIInferenceChatClientTests.cs (4)
166Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 241Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 530Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 664Assert.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)
OpenAIModelMapper.ChatCompletion.cs (1)
562OpenAI.Chat.ChatFinishReason.Stop => ChatFinishReason.Stop,
Microsoft.Extensions.AI.OpenAI.Tests (8)
OpenAIChatClientTests.cs (6)
196Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 277Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 445Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 543Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 642Assert.Equal(ChatFinishReason.Stop, response.FinishReason); 1013Assert.Equal(ChatFinishReason.Stop, response.FinishReason);
OpenAISerializationTests.cs (2)
457FinishReason = ChatFinishReason.Stop, 601FinishReason = i == 4 ? ChatFinishReason.Stop : null,
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
45FinishReason = ChatFinishReason.Stop, 80FinishReason = ChatFinishReason.Stop,
Microsoft.ML.GenAI.Core (1)
CausalLMPipelineChatClient.cs (1)
52FinishReason = ChatFinishReason.Stop,