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

ability to transform response from backend in useChat #975

Open
narasimhajupally opened this issue Feb 13, 2024 · 0 comments
Open

ability to transform response from backend in useChat #975

narasimhajupally opened this issue Feb 13, 2024 · 0 comments

Comments

@narasimhajupally
Copy link

Feature Description

a flag to disable automatic message insertion into messages[] state in useChat when handleSubmit or append is used.

Use Case

if /api/chat endpoint is returning a custom response that includes the response from LLM, the frontend will be able to pick the message content manually and update the messages[] state in useChat hook using onResponse callback in UseChatOptions

Additional context

No response

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