-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Move to React Server Components API #192
Conversation
id, | ||
previewToken | ||
}, | ||
api: action.bind(null, { id, previewToken }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const cachedAction = useMemo(
() => action.bind(null, { id, previewToken }),
[action, id, previewToken]
)
const { messages, append, reload, stop, isLoading, input, setInput } =
useChat({
initialMessages,
id,
api: cachedAction,
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deployment failed with the following error:
View Documentation: https://vercel.com/docs/concepts/teams/roles-and-permissions |
onFinal() { | ||
data.close() | ||
}, | ||
async experimental_onFunctionCall({ name, arguments: args }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would consider updating this to use experimental_onToolCall and possibly consider moving kv into onFinal to avoid unnecessary updates.
Implement new RSC streaming API. In another PR, we will implement functions and components