@assistant-ui/react-ai-sdk 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -37
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -1,38 +1,3 @@
1
- # `assistant-ui`
1
+ # `@assistant-ui/react-ai-sdk`
2
2
 
3
- `assistant-ui` is a set of React components for AI chat.
4
-
5
- - [Discord](https://discord.gg/S9dwgCNEFs)
6
- - [Website](https://assistant-ui.com/)
7
- - [Demo](https://assistant-ui-rsc-example.vercel.app/)
8
-
9
- ## Documentation
10
-
11
- - [Documentation](https://www.assistant-ui.com/docs/getting-started)
12
-
13
- ## Minimal Example with Vercel AI SDK
14
-
15
- ```sh
16
- npx assistant-ui@latest add assistant-modal
17
- ```
18
-
19
- ```tsx
20
- "use client";
21
-
22
- import { useChat } from "@ai-sdk/react";
23
- import { AssistantRuntimeProvider, useVercelUseChatRuntime } from "@assistant-ui/react";
24
- import { AssistantModal } from "@/components/ui/assistant-ui/assistant-modal";
25
-
26
- export default const MyApp = () => {
27
- const chat = useChat({
28
- api: "/api/chat" // your backend route
29
- });
30
- const runtime = useVercelUseChatRuntime(chat);
31
-
32
- return (
33
- <AssistantRuntimeProvider runtime={runtime}>
34
- <AssistantModal />
35
- </AssistantRuntimeProvider>
36
- );
37
- }
38
- ```
3
+ Vercel AI SDK integration for `@assistant-ui/react`.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@assistant-ui/react-ai-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "peerDependencies": {
7
- "@ai-sdk/react": "^0.0.1",
7
+ "@ai-sdk/react": "^0.0.x",
8
8
  "@assistant-ui/react": "^0.0.x",
9
9
  "@types/react": "*",
10
10
  "ai": "^3.1.x",
@@ -28,7 +28,6 @@
28
28
  "access": "public"
29
29
  },
30
30
  "scripts": {
31
- "build": "tsup src/index.ts --format cjs,esm --dts --sourcemap",
32
- "prepublish": "cp ../../README.md ./README.md"
31
+ "build": "tsup src/index.ts --format cjs,esm --dts --sourcemap"
33
32
  }
34
33
  }