Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

192 B
Raw Blame
export const SESSION_TITLE_MAX_LENGTH = 80

export function normalizeSessionTitleDraft(value: string): string {
  return value.trim().replace(/\s+/g, ' ').slice(0, SESSION_TITLE_MAX_LENGTH)
}