16 references to ContentFilter
Microsoft.Extensions.AI.Abstractions.Tests (14)
ChatCompletion\ChatCompletionTests.cs (9)
102completion.FinishReason = ChatFinishReason.ContentFilter; 103Assert.Equal(ChatFinishReason.ContentFilter, completion.FinishReason); 139FinishReason = ChatFinishReason.ContentFilter, 161Assert.Equal(ChatFinishReason.ContentFilter, result.FinishReason); 212FinishReason = ChatFinishReason.ContentFilter, 224Assert.Equal(ChatFinishReason.ContentFilter, update0.FinishReason); 261FinishReason = ChatFinishReason.ContentFilter, 274Assert.Equal(ChatFinishReason.ContentFilter, update0.FinishReason); 285Assert.Equal(ChatFinishReason.ContentFilter, update1.FinishReason);
ChatCompletion\ChatFinishReasonTests.cs (1)
49Assert.Equal("content_filter", ChatFinishReason.ContentFilter.Value);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (4)
82update.FinishReason = ChatFinishReason.ContentFilter; 83Assert.Equal(ChatFinishReason.ContentFilter, update.FinishReason); 180FinishReason = ChatFinishReason.ContentFilter, 211Assert.Equal(ChatFinishReason.ContentFilter, result.FinishReason);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
283finishReason == CompletionsFinishReason.ContentFiltered ? ChatFinishReason.ContentFilter :
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
391OpenAI.Chat.ChatFinishReason.ContentFilter => ChatFinishReason.ContentFilter,