4 references to SerializeStreamingAsync
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAISerializationTests.cs (4)
613
await OpenAISerializationHelpers.
SerializeStreamingAsync
(stream, CreateStreamingCompletion());
641
await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.
SerializeStreamingAsync
(null!, GetStreamingChatCompletion()));
642
await Assert.ThrowsAsync<ArgumentNullException>(() => OpenAISerializationHelpers.
SerializeStreamingAsync
(new MemoryStream(), null!));
659
await Assert.ThrowsAsync<TaskCanceledException>(() => OpenAISerializationHelpers.
SerializeStreamingAsync
(stream, GetStreamingChatCompletion(), cancellationToken: canceledToken));