char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Improve Chat Form Actions UI/UX (models selector, add panel) (#27746)cae63579b

char/aliceai-t5-moe
2.9 KiB78 linesraw
1/**
2 * Settings key constants for ChatSettings configuration.
3 *
4 * These keys correspond to properties in SettingsConfigType and are used
5 * in settings field configurations to ensure consistency.
6 */
7export const SETTINGS_KEYS = {
8	AGENTIC_MAX_TURNS: 'agenticMaxTurns',
9	ALWAYS_SHOW_SIDEBAR_ON_DESKTOP: 'alwaysShowSidebarOnDesktop',
10	ALWAYS_SHOW_TOOL_CALL_CONTENT: 'alwaysShowToolCallContent',
11	API_KEY: 'apiKey',
12	AUTO_MIC_ON_EMPTY: 'autoMicOnEmpty',
13	BACKEND_SAMPLING: 'backend_sampling',
14	CONVERSATION_TABS: 'conversationTabs',
15	COPY_TEXT_ATTACHMENTS_AS_PLAIN_TEXT: 'copyTextAttachmentsAsPlainText',
16	CUSTOM_CSS: 'customCss',
17	// PY_INTERPRETER_ENABLED: 'pyInterpreterEnabled',
18	CUSTOM_JSON: 'customJson',
19	DISABLE_AUTO_SCROLL: 'disableAutoScroll',
20	// Developer
21	DISABLE_REASONING_PARSING: 'disableReasoningParsing',
22	DRY_ALLOWED_LENGTH: 'dry_allowed_length',
23	DRY_BASE: 'dry_base',
24	DRY_MULTIPLIER: 'dry_multiplier',
25	DRY_PENALTY_LAST_N: 'dry_penalty_last_n',
26	DYNATEMP_EXPONENT: 'dynatemp_exponent',
27	DYNATEMP_RANGE: 'dynatemp_range',
28	ENABLE_CONTINUE_GENERATION: 'enableContinueGeneration',
29	EXCLUDE_REASONING_FROM_CONTEXT: 'excludeReasoningFromContext',
30	FREQUENCY_PENALTY: 'frequency_penalty',
31	FULL_HEIGHT_CODE_BLOCKS: 'fullHeightCodeBlocks',
32	JS_SANDBOX_ENABLED: 'jsSandboxEnabled',
33	MAX_IMAGE_RESOLUTION: 'maxImageMPixels',
34	MAX_TOKENS: 'max_tokens',
35	MCP_REQUEST_TIMEOUT_SECONDS: 'mcpRequestTimeoutSeconds',
36	// MCP
37	MCP_SERVERS: 'mcpServers',
38	MENTION_SEARCH_MAX_DEPTH: 'mentionSearchMaxDepth',
39	MIN_P: 'min_p',
40	PASTE_LONG_TEXT_TO_FILE_LEN: 'pasteLongTextToFileLen',
41	PDF_AS_IMAGE: 'pdfAsImage',
42	// Performance
43	PRE_ENCODE_CONVERSATION: 'preEncodeConversation',
44	PRESENCE_PENALTY: 'presence_penalty',
45	RENDER_THINKING_AS_MARKDOWN: 'renderThinkingAsMarkdown',
46	RENDER_USER_CONTENT_AS_MARKDOWN: 'renderUserContentAsMarkdown',
47	// Penalties
48	REPEAT_LAST_N: 'repeat_last_n',
49	REPEAT_PENALTY: 'repeat_penalty',
50	SAMPLERS: 'samplers',
51	SEND_ON_ENTER: 'sendOnEnter',
52	SHOW_AGENTIC_TURN_STATS: 'showAgenticTurnStats',
53	SHOW_BUILD_VERSION: 'showBuildVersion',
54	SHOW_FULL_PATH_IN_MENTIONS: 'showFullPathInMentions',
55	// Display
56	SHOW_MESSAGE_STATS: 'showMessageStats',
57	SHOW_MODEL_ORG_NAME_IN_TRIGGER: 'showModelOrgNameInTrigger',
58	SHOW_MODEL_QUANTIZATION: 'showModelQuantization',
59	SHOW_MODEL_TAGS: 'showModelTags',
60	SHOW_RAW_MODEL_NAMES: 'showRawModelNames',
61	SHOW_RAW_OUTPUT_SWITCH: 'showRawOutputSwitch',
62	SHOW_SYSTEM_MESSAGE: 'showSystemMessage',
63	SHOW_THOUGHT_IN_PROGRESS: 'showThoughtInProgress',
64	SYMBOLIC_MATH_ENABLED: 'symbolicMathEnabled',
65	SYSTEM_MESSAGE: 'systemMessage',
66	// Sampling
67	TEMPERATURE: 'temperature',
68	// General
69	THEME: 'theme',
70	TITLE_GENERATION_PROMPT: 'titleGenerationPrompt',
71	TITLE_GENERATION_USE_FIRST_LINE: 'titleGenerationUseFirstLine',
72	TITLE_GENERATION_USE_LLM: 'titleGenerationUseLLM',
73	TOP_K: 'top_k',
74	TOP_P: 'top_p',
75	TYP_P: 'typ_p',
76	XTC_PROBABILITY: 'xtc_probability',
77	XTC_THRESHOLD: 'xtc_threshold'
78} as const;