You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Feature Description
a flag to disable automatic message insertion into messages[] state in
useChat
whenhandleSubmit
orappend
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 usingonResponse
callback inUseChatOptions
Additional context
No response
The text was updated successfully, but these errors were encountered: