Spaces:
Running on Zero
Running on Zero
Download backend/llama.cpp/tools/ui/src/lib/constants/message-export.ts from kazutab/mindmap-studio: direct link, hf CLI and curl.
- Browser
- Download file 850 Bytes
-
https://huggingface.co/spaces/kazutab/mindmap-studio/resolve/main/backend/llama.cpp/tools/ui/src/lib/constants/message-export.ts
- Command line
-
hf download hf://spaces/kazutab/mindmap-studio/backend/llama.cpp/tools/ui/src/lib/constants/message-export.ts
-
curl -L -o message-export.ts https://huggingface.co/spaces/kazutab/mindmap-studio/resolve/main/backend/llama.cpp/tools/ui/src/lib/constants/message-export.ts
850 Bytes
| // Conversation filename constants | |
| // Length of the trimmed conversation ID in the filename | |
| export const EXPORT_CONV_ID_TRIM_LENGTH = 8; | |
| // Maximum length of the sanitized conversation name snippet | |
| export const EXPORT_CONV_NAME_SUFFIX_MAX_LENGTH = 20; | |
| // Characters to keep in the ISO timestamp. 19 keeps 2026-01-01T00:00:00 | |
| export const ISO_TIMESTAMP_SLICE_LENGTH = 19; | |
| // Replacements for making the conversation title filename-friendly | |
| export const NON_ALPHANUMERIC_REGEX = /[^a-z0-9]/gi; | |
| export const EXPORT_CONV_NONALNUM_REPLACEMENT = '_'; | |
| export const MULTIPLE_UNDERSCORE_REGEX = /_+/g; | |
| // Replacements to the ISO date for use in the export filename | |
| export const ISO_DATE_TIME_SEPARATOR = 'T'; | |
| export const ISO_DATE_TIME_SEPARATOR_REPLACEMENT = '_'; | |
| export const ISO_TIME_SEPARATOR = ':'; | |
| export const ISO_TIME_SEPARATOR_REPLACEMENT = '-'; | |