feat: update providers (#881)
This commit is contained in:
parent
9058240e10
commit
7811c0f7fb
11 changed files with 122 additions and 108 deletions
|
|
@ -2,15 +2,12 @@
|
|||
|
||||
import { motion } from 'framer-motion';
|
||||
import { Button } from './ui/button';
|
||||
import { ChatRequestOptions, CreateMessage, Message } from 'ai';
|
||||
import { memo } from 'react';
|
||||
import { UseChatHelpers } from '@ai-sdk/react';
|
||||
|
||||
interface SuggestedActionsProps {
|
||||
chatId: string;
|
||||
append: (
|
||||
message: Message | CreateMessage,
|
||||
chatRequestOptions?: ChatRequestOptions,
|
||||
) => Promise<string | null | undefined>;
|
||||
append: UseChatHelpers['append'];
|
||||
}
|
||||
|
||||
function PureSuggestedActions({ chatId, append }: SuggestedActionsProps) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue