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