feat(feedback): лимит шаблона промпта 15000 символов (персональный и глобальный)
This commit is contained in:
+2
-2
@@ -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 => ({
|
||||
|
||||
Reference in New Issue
Block a user