microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.59k stars 1.54k forks source link

WebChat: Support for ‘stream’ output in ChatGPT style while using Azure OpenAI Completion #4876

Closed dawwa closed 5 months ago

dawwa commented 1 year ago

Bot responses with Azure OpenAI Completion, but we need the response to be displayed in a live streaming format.

Describe the suggestion or request in detail

Allow Application that uses Bot framework webchat to stream out the response like ChatGPT web chat does.

compulim commented 1 year ago

This is good.

Internally, we are planning this feature, streaming texts/completions from Azure OpenAI and other capable services into Web Chat.

HesselWellema commented 11 months ago

Implementing this would be much appreciatedd. We still rely on your webchat widget for most of our implementation. The time it takes to get the full response from the azure openai-api is perceived as latency by users.

pedrojlazevedo commented 10 months ago

This feature, after MSTeams update, is a must! Really keen to see an update on this

wsp174212 commented 9 months ago

Thanks for your help, Is there an ETA for this feature?

HesselWellema commented 9 months ago

Or maybe share some insight in what to expect

biyukai88 commented 9 months ago

May I ask when you plan to go online?We are all looking forward to this feature!

wsp174212 commented 9 months ago

@compulim I hope this message finds you well. Could you please let me know if there is an ETA for this feature. More and more popular tools are releasing new features like GPT. We really need this to expand our business.

rliberoff commented 7 months ago

Hello Team!

This feature is really important. Today, it is possible to update an activity in teams (await turnContext.UpdateActivityAsync(responseActivity, cancellationToken);) creating a stream (or typing) experience like ChatGPT.

However, it is currently impossible to do so with the Webchat 😟

When can we expect this feature?

Thank you.

anshumankmr commented 6 months ago

Hey folks, is there a workaround for this in Bot Framework WebChat?

HesselWellema commented 6 months ago

Update from @compulim : https://github.com/microsoft/BotFramework-WebChat/issues/5121#issuecomment-2042229329

DukaJ commented 4 months ago

Dear Mr. Wong, first of all thank you for your effort and commitment that Webchat is working stable so many years! Please check my question below:

Are there any updates on this topic that enable streaming responses through Webchat component through Bot framework SDK? This is extremely important feature since without it, in the era of LLM, usage of the component is having challenges.

If you may please share expected date for this to be enabled @compulim

Kind regards and thank you in advance!

Joekraft commented 4 months ago

@compulim could you clarify what #5141 is meant to resolve here? It appears to be implementing a typing indicator, and "livestreaming"? But there is no clear documentation or examples how this links back to the expected support of response streaming from AI generated answers?

compulim commented 1 month ago

I am adding a LIVESTREAMING.md in the PR #5265. The document outlines how to send livestreaming from the bot code and also bot/channel/client supportability.

@DukaJ thanks for your support and understanding, the document would explain how to add it to the bot.

@Joekraft we are extending the typing activity for livestreaming. So, yes, you will send a typing activity for livestreaming. Despite typing activity has been available for a very long time, its design is naturally extensible to cover livestreaming cases in additional to typing indicator. In some future, it could be used for bot-assisted auto-completion too. 😉

Thank you everyone for support. We are working very hard to add livestreaming support to a very broad ecosystem at Microsoft, including but not limited to Azure Bot Services, Copilot Studio, Teams.