Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 🫖 Status page with uptime monitoring & API monitoring as code 🫖 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
535 B · 17 lines
TypeScript
123456789101112131415161718/** * Verbatim message cap on the JSON column. When a session crosses this * threshold, the oldest entries are dropped on the next `append` so the * stored payload stays bounded. */export const MAX_CHAT_MESSAGES = 20;
/** * Per (workspace, user) cap on chat sessions. Inserting a 21st row drops * the oldest by `updated_at` in the same transaction. */export const MAX_CHAT_SESSIONS_PER_USER = 20;
/** * Title truncation length — first user message clipped to this many chars. */export const CHAT_TITLE_MAX_LENGTH = 60;