char-fork/llama.cpp

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

Aleksander Grygierui: Constants refactor (#26908)e21152dc9

char/aliceai-t5-moe
824 B24 linesraw
1// Conversation exporter / filename constants
2
3export const EXPORT_CONV = {
4	// Producer marker carried by the session record of a JSONL export
5	HARNESS: 'llama.app',
6	// Length of the trimmed conversation ID in the filename
7	ID_TRIM_LENGTH: 8,
8	// Replacements to the ISO date for use in the export filename
9	ISO_DATE_TIME_SEPARATOR: 'T',
10
11	ISO_DATE_TIME_SEPARATOR_REPLACEMENT: '_',
12
13	ISO_TIME_SEPARATOR: ':',
14	ISO_TIME_SEPARATOR_REPLACEMENT: '-',
15	// Characters to keep in the ISO timestamp. 19 keeps 2026-01-01T00:00:00
16	ISO_TIMESTAMP_SLICE: 19,
17
18	MULTIPLE_UNDERSCORE_REGEX: /_+/g,
19	// Maximum length of the sanitized conversation name snippet
20	NAME_SUFFIX_MAX_LENGTH: 20,
21	// Replacements for making the conversation title filename-friendly
22	NON_ALPHANUMERIC_REGEX: /[^a-z0-9]/gi,
23	NONALNUM_REPLACEMENT: '_'
24} as const;