Comparing version 3.3.39 to 3.3.40
# ai | ||
## 3.3.40 | ||
### Patch Changes | ||
- a91c308: feat (ai/core): add responseMessages to streamText | ||
## 3.3.39 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "ai", | ||
"version": "3.3.39", | ||
"version": "3.3.40", | ||
"description": "Vercel AI SDK - The AI Toolkit for TypeScript and JavaScript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -151,3 +151,10 @@ ![hero illustration](./assets/hero.gif) | ||
} | ||
``` | ||
###### @/app/ai.ts (Next.js App Router) | ||
```tsx | ||
import { createAI } from 'ai/rsc'; | ||
import { submitMessage } from '@/app/actions'; | ||
export const AI = createAI({ | ||
@@ -166,3 +173,3 @@ initialAIState: {}, | ||
import { ReactNode } from 'react'; | ||
import { AI } from '@/app/actions'; | ||
import { AI } from '@/app/ai'; | ||
@@ -169,0 +176,0 @@ export default function Layout({ children }: { children: ReactNode }) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2366222
27054
228