@prexo/ai-chat-sdk
Version:
AI Chat Component with Persistent History
14 lines (11 loc) • 345 B
TypeScript
import { BaseMessageHistory } from '../../lib/types.js';
import 'ai';
import '@upstash/vector';
type GetHistoryClientParams = {
redis?: {
url: string;
token: string;
};
};
declare const getHistoryClient: (params?: GetHistoryClientParams) => BaseMessageHistory;
export { type GetHistoryClientParams, getHistoryClient };