Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

896 B
Raw Blame
import { createStorageAtom } from '~/store/jotai-utils';

/** Sticky preference: does the context popover open with the breakdown showing?
 *  The gauge alone is the default; a user who wants the detail sets it once. */
export const contextBreakdownExpandedAtom = createStorageAtom<boolean>(
  'contextBreakdownExpanded',
  false,
);

export {
  overheadKey,
  liveTokensFamily,
  getModelOverhead,
  markUsageFolded,
  setModelOverhead,
  totalUsageFamily,
  calibrationFamily,
  clearUsageFolded,
  hydrateSnapshots,
  removeUsageAtoms,
  branchTotalsFamily,
  pendingUsageFamily,
  migrateUsageFolded,
  subagentUsageFamily,
  contextSnapshotFamily,
  snapshotsByAnchorFamily,
  pendingSubagentUsageFamily,
  activeUsageResponseIdFamily,
} from '@librechat/chat/react';
export type { ContextSnapshot, UsageTotals } from '@librechat/chat';
export { EMPTY_USAGE_TOTALS } from '@librechat/chat';