Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i pass middleware feedback to user? #6

Open
iamlite opened this issue Sep 28, 2024 · 0 comments
Open

How do i pass middleware feedback to user? #6

iamlite opened this issue Sep 28, 2024 · 0 comments

Comments

@iamlite
Copy link

iamlite commented Sep 28, 2024

I want to inform the user about the progress or status updates from the middleware directly in the chat UI. For instance, when the middleware is processing, the UI should indicate that something is happening.

Is there anything built in that i can use to achieve that?

I tried doing something like this:

      messages.push({
      role: 'assistant',
      content: [{ type: 'text', text: 'Classifying your message...' }]
    })

this pushes the messages into the API call but does not reflect the added messages in the UI.
Any advice or help would be very much appreciated.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant