char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
539f24529
char/aliceai-t5-moe
1import { Package , Search , Settings , SquarePen } from '@lucide/svelte' ; 2import { SidebarAction , ToolSource } from '$lib/enums' ; 3import type { DesktopIconStripItem } from '$lib/types' ; 4 5export const FORK_TREE_DEPTH_PADDING = 8 ; 6export const SYSTEM_MESSAGE_PLACEHOLDER = 'System message' ; 7 8/** Data attributes for app-level DOM contracts. */ 9export const UI_DATA_ATTRS = { 10ACTIVE :'data-active' , 11ACTIVE_TAB :'data-active-tab' , 12CONVERSATION_ROW :'data-conversation-row' , 13HIGHLIGHT_THEME_PREVIEW :'data-highlight-theme-preview' , 14PICKER_INDEX :'data-picker-index' , 15RESULT_INDEX :'data-result-index' , 16THUMBNAIL_INDEX :'data-thumbnail-index' 17} as const ; 18 19export const TOOL_GROUP_LABELS = { 20[ ToolSource . BROWSER ] :'Browser' , 21[ ToolSource . CUSTOM ] :'JSON Schema' , 22[ ToolSource . SERVER ] :'Server' 23} as const ; 24 25export const TOOL_SERVER_LABELS = { 26[ ToolSource . BROWSER ] :'Browser Tools' , 27[ ToolSource . CUSTOM ] :'Custom Tools' , 28[ ToolSource . SERVER ] :'Server Tools' 29} as const ; 30 31export const TOOLTIP_DELAY_DURATION = 500 ; 32 33export const VIEWPORT_GUTTER = 8 ; 34export const MENU_OFFSET = 6 ; 35 36export const PROCESSING_INFO_TIMEOUT = 2000 ; 37 38/** 39* Statistics units labels 40*/ 41export const STATS_UNITS = { 42TOKENS_PER_SECOND :'t/s' 43} as const ; 44 45export const DEFAULT_MOBILE_BREAKPOINT = 768 ; 46 47/** Icon used for the model selector and the `/model` slash command. */ 48export const MODEL_SELECTOR_ICON = Package ; 49 50export const ICON_STRIP_TRANSITION_DURATION = 150 ; 51export const ICON_STRIP_TRANSITION_DELAY_MULTIPLIER = 50 ; 52 53/** Max height for tool-result code blocks (json / source / diff / streaming code). */ 54export const MAX_HEIGHT_CODE_BLOCK = '22rem' ; 55 56export const SIDEBAR_ACTIONS_ITEMS :DesktopIconStripItem [] = [ 57{ 58action :SidebarAction . NEW_CHAT , 59icon :SquarePen , 60keys :[ 'shift' , 'cmd' , 'o' ], 61tooltip :'New chat' 62}, 63{ icon :Search , keys :[ 'cmd' , 'k' ], tooltip :'Search' }, 64{ 65action :SidebarAction . SETTINGS , 66icon :Settings , 67tooltip :'Settings' 68} 69];