feat(feedback): лимит шаблона промпта 15000 символов (персональный и глобальный)

This commit is contained in:
dev
2026-10-08 15:55:44 +03:00
parent ecfa15e35b
commit 51f57f1524
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -424,7 +424,7 @@ function normalizeRestoreData(data) {
}));
const settings = {};
for (const [k, v] of Object.entries(data.settings || {})) {
settings[reqStr(k, 100)] = reqStr(String(v), 10000);
settings[reqStr(k, 100)] = reqStr(String(v), 15000);
}
const audit_log = (data.audit_log || []).map(x => ({
id: reqInt(x.id),
@@ -544,7 +544,7 @@ function normalizeRestoreData(data) {
const user_settings = (data.user_settings || []).map(x => ({
user_id: reqInt(x.user_id),
key: reqStr(x.key, 100),
value: optText(x.value, 8000),
value: optText(x.value, 16000),
updated_at: optTs(x.updated_at),
}));
const user_notes = (data.user_notes || []).map(x => ({