Spaces:
Running
Running
Fix: Corrected ai/react import in TextGeneration.tsx
Browse files
components/app/TextGeneration.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
'use client';
|
| 2 |
|
| 3 |
import { useState } from 'react';
|
| 4 |
-
import { useChat } from 'ai/react';
|
| 5 |
|
| 6 |
export default function TextGeneration() {
|
| 7 |
const [model, setModel] = useState('alias-code');
|
|
|
|
| 1 |
'use client';
|
| 2 |
|
| 3 |
import { useState } from 'react';
|
| 4 |
+
import { useChat } from '@ai-sdk/react';
|
| 5 |
|
| 6 |
export default function TextGeneration() {
|
| 7 |
const [model, setModel] = useState('alias-code');
|