feat(summary): send complete articles within user budget (#39)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user