compress wip

This commit is contained in:
2026-01-29 22:58:41 +03:00
parent 9be2ad1fd9
commit c3b7192516
5 changed files with 129 additions and 8 deletions

View File

@@ -39,7 +39,9 @@ CREATE TABLE rp_users(
user_prompt text NOT NULL DEFAULT '',
selected_preset text REFERENCES rp_presets(id) DEFAULT 'soft',
selected_model text REFERENCES rp_models(id) DEFAULT 'deepseek3.1',
used_tokens int8 NOT NULL DEFAULT 0
used_tokens int8 NOT NULL DEFAULT 0,
compress_method text NOT NULL DEFAULT 'messages',
compress_limit integer NOT NULL DEFAULT 100
);
CREATE UNIQUE INDEX rp_users_uindex ON rp_users(user_id);