TdAI / llama.cpp /tools /ui /src /lib /constants /routes.ts
tda45's picture
Upload folder using huggingface_hub (part 8)
15c3607 verified
Raw
History Blame Contribute Delete
848 Bytes
export const NEW_CHAT_PARAM = 'new_chat';
/** Settings section slugs β€” used for routes and navigation. */
export const SETTINGS_SECTION_SLUGS = {
GENERAL: 'general',
DISPLAY: 'display',
SAMPLING: 'sampling',
PENALTIES: 'penalties',
AGENTIC: 'agentic',
DEVELOPER: 'developer',
MCP: 'mcp',
TOOLS: 'tools',
IMPORT_EXPORT: 'import-export'
} as const;
export const ROUTES = {
/** Root β€” start of the app. */
START: '#/',
/** New chat β€” root with new chat query param. */
NEW_CHAT: `?${NEW_CHAT_PARAM}=true#/`,
/** Chat base β€” for dynamic chat URLs use RouterService. */
CHAT: '#/chat',
/** MCP servers. */
MCP_SERVERS: '#/mcp-servers',
/** Settings base β€” for dynamic settings URLs use RouterService. */
SETTINGS: '#/settings',
/** Search β€” mobile-only full-page conversation search. */
SEARCH: '#/search'
} as const;