chore: update to ai sdk v5 beta (#1074)
This commit is contained in:
parent
7d8e71383f
commit
4c281fe09d
54 changed files with 1372 additions and 1060 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import { useState, useEffect } from 'react';
|
||||
import { useScrollToBottom } from './use-scroll-to-bottom';
|
||||
import type { UseChatHelpers } from '@ai-sdk/react';
|
||||
import type { ChatMessage } from '@/lib/types';
|
||||
|
||||
export function useMessages({
|
||||
chatId,
|
||||
status,
|
||||
}: {
|
||||
chatId: string;
|
||||
status: UseChatHelpers['status'];
|
||||
status: UseChatHelpers<ChatMessage>['status'];
|
||||
}) {
|
||||
const {
|
||||
containerRef,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue