webui: export conversations as jsonl (#24688)

* webui: export conversations as jsonl

each session is one jsonl file, a session header line followed by one line per message
exporting multiple conversations bundles them into a zip, one jsonl file each

* webui: import jsonl and zip conversation exports

parse the new jsonl session format and zip archives on import
keep supporting the legacy json format
This commit is contained in:
Julien Chaumond
2026-06-17 13:25:47 +02:00
committed by GitHub
parent 558e221b70
commit 8086439a4c
5 changed files with 189 additions and 44 deletions
+5 -1
View File
@@ -123,6 +123,8 @@ export enum FileExtensionText {
HTML = '.html',
HTM = '.htm',
JSON = '.json',
JSONL = '.jsonl',
ZIP = '.zip',
XML = '.xml',
YAML = '.yaml',
YML = '.yml',
@@ -179,7 +181,8 @@ export enum UriPattern {
// MIME type enums
export enum MimeTypeApplication {
PDF = 'application/pdf',
OCTET_STREAM = 'application/octet-stream'
OCTET_STREAM = 'application/octet-stream',
ZIP = 'application/zip'
}
export enum MimeTypeAudio {
@@ -226,6 +229,7 @@ export enum MimeTypeText {
CSS = 'text/css',
HTML = 'text/html',
JSON = 'application/json',
JSONL = 'application/jsonl',
XML_TEXT = 'text/xml',
XML_APP = 'application/xml',
YAML_TEXT = 'text/yaml',