2 writes to ChoiceIndex
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (2)
78update.ChoiceIndex = 42; 182ChoiceIndex = 42,
8 references to ChoiceIndex
Microsoft.Extensions.AI (4)
ChatCompletion\CachingChatClient.cs (2)
96if (update.ChoiceIndex != 0 || 108if (next.ChoiceIndex != 0 ||
ChatCompletion\OpenTelemetryChatClient.cs (2)
210if (!choices.TryGetValue(update.ChoiceIndex, out var choiceContents)) 212choices[update.ChoiceIndex] = choiceContents = [];
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (4)
26Assert.Equal(0, update.ChoiceIndex); 77Assert.Equal(0, update.ChoiceIndex); 79Assert.Equal(42, update.ChoiceIndex); 212Assert.Equal(42, result.ChoiceIndex);