Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

426 B
Raw Blame
import type { DocumentHistorySaveSource } from '@/server/services/document/types';

export const DOCUMENT_HISTORY_QUERY_LIST_LIMIT = 50;

export const FREE_DOCUMENT_HISTORY_WINDOW_DAYS = 30;

export const DOCUMENT_HISTORY_AUTOSAVE_WINDOW_MS = 10 * 60 * 1000;

export const DOCUMENT_HISTORY_SOURCE_LIMITS: Record<DocumentHistorySaveSource, number> = {
  autosave: 20,
  manual: 20,
  restore: 5,
  system: 5,
  llm_call: 5,
};