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

Move to React Server Components API #192

Closed
wants to merge 9 commits into from
Closed

Move to React Server Components API #192

wants to merge 9 commits into from

Conversation

jaredpalmer
Copy link
Collaborator

@jaredpalmer jaredpalmer commented Dec 4, 2023

Implement new RSC streaming API. In another PR, we will implement functions and components

id,
previewToken
},
api: action.bind(null, { id, previewToken }),
Copy link

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,

Copy link

vercel bot commented Dec 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-chatbot-rces ❌ Failed (Inspect) Jan 6, 2024 11:49pm
oss-ai-chatbot ❌ Failed (Inspect) Jan 6, 2024 11:49pm

Copy link

vercel bot commented Dec 18, 2023

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this project.

View Documentation: https://vercel.com/docs/concepts/teams/roles-and-permissions

onFinal() {
data.close()
},
async experimental_onFunctionCall({ name, arguments: args }) {
Copy link

@callummcadam callummcadam Jan 15, 2024

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.

@iteratetograceness iteratetograceness deleted the jp/rsc branch May 21, 2024 02:26
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

Successfully merging this pull request may close these issues.

None yet

3 participants