Compression Language Packs
v3.8.1Last updated: 2026-05-13
Was this page helpful?
Loading OmniRoute...
open-sse/services/compression/rules/<language>/
directory contents):
, , |
||
, , |
||
, , |
||
, , |
||
, , |
||
, , |
Parity note: and packs have the full 5 categories; , , , ship 3 categories. The missing and categories silently fall back to the English built-ins. Contributions welcome to add and for the smaller packs.
(JSON Schema draft 2020-12).
uses lightweight heuristics to infer the language from prompt text. The configured default language is still respected, and detection can be disabled by config when exact control is required.
{
"languageConfig": {
"enabled": true,
"defaultLanguage": "en",
"autoDetect": true,
"enabledPacks": ["en", "pt-BR", "es", "de", "fr", "ja"]
},
"cavemanConfig": {
"language": "en",
"autoDetectLanguage": true,
"enabledLanguagePacks": ["en", "pt-BR", "es", "de", "fr", "ja"]
}
}
controls dashboard/preview defaults. is the runtime engine config
used when Caveman compresses message text.
curl http://localhost:20128/api/compression/language-packs
curl -X POST http://localhost:20128/api/compression/preview \
-H "Content-Type: application/json" \
-d '{
"mode": "standard",
"text": "Por favor, eu gostaria que voce basicamente resumisse isso.",
"config": {
"languageConfig": {
"defaultLanguage": "pt-BR",
"autoDetect": true
}
}
}'
clause in v3.8.0 that is applied at every Caveman intensity (LITE, FULL, ULTRA). It instructs the engine to preserve these patterns verbatim, regardless of surrounding filler removal:
, |
|
, , |
|
(previously ). The
constant lives in .
{
"cavemanConfig": {
"preservePatterns": [
"```[\\s\\S]*?```",
"`[^`]+`",
"https?://\\S+",
"(?:/|\\./)[^\\s]+",
"\\b(?:Error|TypeError|SyntaxError|RangeError):",
"\\s+at\\s+\\S+\\s+\\(\\S+:\\d+:\\d+\\)"
]
}
}