mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-17 20:31:47 +02:00
Add the Models Discover explorer behind a new sidebar action and full-screen dialog: a searchable HuggingFace GGUF list (org avatars, capability icons, catalog size ranges) and a detail pane with header, metadata chips, the sanitized model-card readme and the download area - per-quant action chips grouped by bit depth, sidecar queuing and a scrollable serve-command preview with dynamic quant selects. Searchable dropdowns gain sticky headers/footers. Assisted-by: pi:GLM-5.3-Flash
64 lines
1009 B
TypeScript
64 lines
1009 B
TypeScript
export enum ColorMode {
|
|
DARK = 'dark',
|
|
LIGHT = 'light',
|
|
SYSTEM = 'system'
|
|
}
|
|
|
|
export enum TooltipSide {
|
|
BOTTOM = 'bottom',
|
|
LEFT = 'left',
|
|
RIGHT = 'right',
|
|
TOP = 'top'
|
|
}
|
|
|
|
/**
|
|
* ScrollCarousel arrow placement.
|
|
*/
|
|
export enum ScrollCarouselVariant {
|
|
CENTER = 'center',
|
|
TOP = 'top'
|
|
}
|
|
|
|
/**
|
|
* Sidebar icon strip actions handled directly by the sidebar.
|
|
*/
|
|
export enum SidebarAction {
|
|
DISCOVER_MODELS = 'discover-models',
|
|
NEW_CHAT = 'new-chat',
|
|
SETTINGS = 'settings'
|
|
}
|
|
|
|
/**
|
|
* MCP prompt display variant
|
|
*/
|
|
export enum McpPromptVariant {
|
|
ATTACHMENT = 'attachment',
|
|
MESSAGE = 'message'
|
|
}
|
|
|
|
/**
|
|
* URL prefixes for protocol detection
|
|
*/
|
|
export enum UrlProtocol {
|
|
DATA = 'data:',
|
|
FILE = 'file:',
|
|
HTTP = 'http:',
|
|
HTTPS = 'https:',
|
|
WEBSOCKET = 'ws:',
|
|
WEBSOCKET_SECURE = 'wss:'
|
|
}
|
|
|
|
export enum HtmlInputType {
|
|
FILE = 'file'
|
|
}
|
|
|
|
/**
|
|
* Alert level that drives the context gauge dial color.
|
|
*/
|
|
export enum ColorLevel {
|
|
CRITICAL = 'critical',
|
|
NEUTRAL = 'neutral',
|
|
OK = 'ok',
|
|
WARNING = 'warning'
|
|
}
|