- POST /api/uploads: base64 -> shared ~/.strata-ctl/uploads store (uuid+ext), content-sniffed kind (image/text/binary), text token-counted via the model tokenizer; metadata persisted in a new uploads table. - Chat attachments routed by kind: images -> Vision bridge (multipart image_url), small text (<=2000 tokens) inlined, large text/binary -> path + shell_exec reminder; binaries never inlined. Attachment context persisted with the turn. - GUI: attach button + file picker, removable chips, attachments sent with the turn and shown on the user bubble; cleared on session switch. - Framework root ~/.strata-ctl separated by type: sessions/<name>/, data/ (SQLite, moved from ~/.config/strata-ctl), uploads/. Legacy DB copied once on first run. - count_tokens seam on Formatter (real tokenizer override) + ChatService. - i18n: upload errors + attachment markers (backend) and attach.* (GUI), it+en. - 121 tests + 2 ignored; clippy/fmt clean; validated live (upload routing, real tokenizer count, image->Vision answered "Rosso", new layout).
24 lines
1001 B
JSON
24 lines
1001 B
JSON
{
|
|
"settings.title.session": "Impostazioni sessione",
|
|
"settings.title.general": "Impostazioni generali",
|
|
"settings.scope.session": "Sessione",
|
|
"settings.scope.general": "Generali",
|
|
"settings.name": "Nome",
|
|
"settings.notes": "Note (scopo della chat)",
|
|
"settings.sp": "System Prompt",
|
|
"settings.temp": "Temperature",
|
|
"settings.topp": "Top-p",
|
|
"settings.topk": "Top-k",
|
|
"settings.minp": "Min-p",
|
|
"settings.maxtokens": "Max token",
|
|
"settings.save": "Salva",
|
|
"settings.cancel": "Annulla",
|
|
"settings.hint.session": "Modifiche valide solo per questa sessione.",
|
|
"settings.hint.general": "Default generali: si applicano solo alle sessioni future.",
|
|
"settings.name.locked": "Il nome è bloccato dopo la prima interazione.",
|
|
"settings.name.unlocked": "Puoi rinominare finché non invii il primo messaggio.",
|
|
"settings.error": "Errore: {msg}",
|
|
"attach.title": "Allega file o immagini",
|
|
"attach.remove": "Rimuovi allegato",
|
|
"attach.error": "Caricamento fallito: {msg}"
|
|
} |