MingruiZhang's picture
image rendering and vision agent endpoint boilerplate (#6)
a86b547 unverified
raw
history blame
350 Bytes
import { nanoid } from '@/lib/utils';
import { Chat } from '@/components/chat';
import { getKVChat } from '@/lib/kv/chat';
interface PageProps {
params: {
id: string;
};
}
export default async function Page({ params }: PageProps) {
const { id: chatId } = params;
const chat = await getKVChat(chatId);
return <Chat chat={chat} />;
}