Skip to content

Commit 15d7d66

Browse files
committed
feat: add @ai-sdk/rsc package and update imports
- Added the @ai-sdk/rsc package version 1.0.0 to bun.lock and package.json. - Updated import statements in message.tsx and use-streamable-text.tsx to use the new @ai-sdk/rsc package instead of the previous 'ai/rsc' path.
1 parent 59db96d commit 15d7d66

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

apps/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@ai-sdk/openai": "^2.0.0",
88
"@ai-sdk/provider": "^2.0.0",
99
"@ai-sdk/react": "^2.0.0",
10+
"@ai-sdk/rsc": "^1.0.0",
1011
"@aws-sdk/client-s3": "^3.806.0",
1112
"@aws-sdk/client-sts": "^3.808.0",
1213
"@aws-sdk/s3-request-presigner": "^3.832.0",

apps/app/src/components/ai/message.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use client';
22

33
import { useStreamableText } from '@/hooks/use-streamable-text';
4+
import { type StreamableValue } from '@ai-sdk/rsc';
45
import { cn } from '@comp/ui/cn';
56
import type { UIMessage } from 'ai';
6-
import type { StreamableValue } from 'ai/rsc';
7+
78
import equal from 'fast-deep-equal';
89
import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
910
import { AnimatePresence, motion } from 'motion/react';

apps/app/src/hooks/use-streamable-text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type StreamableValue, readStreamableValue } from 'ai/rsc';
1+
import { type StreamableValue, readStreamableValue } from '@ai-sdk/rsc';
22
import { useEffect, useState, useTransition } from 'react';
33

44
function useDebounce<T>(value: T, delay: number): T {

bun.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)