feat(summary): send complete articles within user budget (#39)

This commit is contained in:
2026-11-24 17:39:26 +01:00
parent d0c7cb7cae
commit 79953ce49f
73 changed files with 1688 additions and 288 deletions

View File

@ -53,7 +53,7 @@ func TestPreferencesPersistPerUserPostgres(t *testing.T) {
if _, err = db.Exec(string(migration)); err != nil {
t.Fatal(err)
}
if _, err = db.Exec(`ALTER TABLE users ADD COLUMN summary_model_id UUID NULL`); err != nil {
if _, err = db.Exec(`ALTER TABLE users ADD COLUMN summary_model_id UUID NULL, ADD COLUMN summary_prompt_token_budget INT NOT NULL DEFAULT 250000`); err != nil {
t.Fatal(err)
}
// The two accounts predate migration 11: defaults must backfill both,