Switch to @vercel/kv

This commit is contained in:
Jared Palmer 2023-06-02 15:15:35 -04:00
parent 45d3a8d0ee
commit fc79a708f4
20 changed files with 188 additions and 1079 deletions

9
lib/types.ts Normal file
View file

@ -0,0 +1,9 @@
import { type Message } from "ai-connector";
export interface Chat extends Record<string, any> {
id: string;
title: string;
createdAt: Date;
userId: string;
messages: Message[];
}