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