WPF ConversationalUI - Possible to update the message with a async stream?

1 Answer 101 Views
Chat (Conversational UI)
Stephen
Top achievements
Rank 1
Stephen asked on 08 May 2023, 05:18 PM

Hi,

Im using conversationalUI in a WPF app and would like to update the message in realtime as my openAI response is streaming in to make the UX a better experience on long responses. This should update the message being displayed in realtime as the service is streaming in text.

I only see the ability to do a message.Add() option, I feel like there should also be a AddAsync() method. Is this even possible in this control? 

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 May 2023, 02:51 PM

Hello Stephen,

RadChat doesn't have a streaming feature  neither an example that shows how to bind to async service. 

To achieve your requirement, you can update the Text property of the associated TextMessage object. You can find this approach shown in the attached project. Can you give it a try and let me know if it helps?

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Stephen
Top achievements
Rank 1
commented on 10 May 2023, 04:06 PM

Hi Martin,

Thanks for the response. I looked at the sample project and I think that will work as a nice workaround. Im off the project until next week but once I get back on it I will implement it and report back.

Thanks again!

Martin Ivanov
Telerik team
commented on 10 May 2023, 08:40 PM

Sure, take your time.
Tags
Chat (Conversational UI)
Asked by
Stephen
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or