You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@assistant-ui/react-ai-sdk

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assistant-ui/react-ai-sdk

`assistant-ui` is a set of React components for AI chat.

0.0.1
Source
npmnpm
Version published
Weekly downloads
33K
21.72%
Maintainers
1
Weekly downloads
 
Created
Source

assistant-ui

assistant-ui is a set of React components for AI chat.

  • Discord
  • Website
  • Demo

Documentation

Minimal Example with Vercel AI SDK

npx assistant-ui@latest add assistant-modal
"use client";

import { useChat } from "@ai-sdk/react";
import { AssistantRuntimeProvider, useVercelUseChatRuntime } from "@assistant-ui/react";
import { AssistantModal } from "@/components/ui/assistant-ui/assistant-modal";

export default const MyApp = () => {
  const chat = useChat({ 
    api: "/api/chat" // your backend route
  });
  const runtime = useVercelUseChatRuntime(chat);

  return (
    <AssistantRuntimeProvider runtime={runtime}>
      <AssistantModal />
    </AssistantRuntimeProvider>
  );
}

FAQs

Package last updated on 16 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts