Skip to content

Streaming support, implementation of IAsyncEnumberalbe #378

Closed

Description

@ColinZeb

Because I see that Example App Chat Copilot's response is too slow, I would like to ask if Streaming will be implemented in the future.

Additional description:
Nuget package Azure.AI.OpenAI supports Streaming
Example:

Response<StreamingChatCompletions> response = await client.GetChatCompletionsStreamingAsync(
               deploymentOrModelName: model,
               chatCompletionsOptions);
using StreamingChatCompletions streamingChatCompletions = response.Value;

await foreach (StreamingChatChoice choice in streamingChatCompletions.GetChoicesStreaming())
{
   await foreach (ChatMessage message in choice.GetMessageStreaming())
   {
       Console.Write(message.Content);
   }
   Console.WriteLine("-------------");
}

Activity

  1. microsoftShannon commented on Apr 13, 2023

    @microsoftShannon
    Member

    We are working on this.

  2. dedalo commented on May 6, 2023

    @dedalo
    Contributor

    did not see this and created other option. link here and follow to close once the issue is solved.
    #836

    I'm using copilot with signalr to connect status change and streaming and the UX changes completely
    SK_signalr_stream

  3. added a commit that references this issue on May 8, 2023
    ef85b61
  4. added a commit that references this issue on Jun 1, 2023
    bb10c1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions