Remove budget saver mode (#378)

This code was quite complex and hairy and resulted in very opaque errors
(for both free and pro users). There's not much benefit to budget saver
because Google removed 2.5 Pro free quota a while ago (after it
graduated the model from experimental to preview). Dyad Pro users can
still use 2.5 Flash free quota by disabling Dyad Pro by clicking on the
Dyad Pro button at the top.
This commit is contained in:
Will Chen
2025-06-10 13:54:27 -07:00
committed by GitHub
parent 534cbad909
commit fa80014e16
6 changed files with 14 additions and 217 deletions

View File

@@ -139,7 +139,6 @@ export const UserSettingsSchema = z.object({
experiments: ExperimentsSchema.optional(),
lastShownReleaseNotesVersion: z.string().optional(),
maxChatTurnsInContext: z.number().optional(),
enableProSaverMode: z.boolean().optional(),
enableProLazyEditsMode: z.boolean().optional(),
enableProSmartFilesContextMode: z.boolean().optional(),
selectedTemplateId: z.string().optional(),
@@ -154,6 +153,7 @@ export const UserSettingsSchema = z.object({
////////////////////////////////
// DEPRECATED.
////////////////////////////////
enableProSaverMode: z.boolean().optional(),
dyadProBudget: DyadProBudgetSchema.optional(),
runtimeMode: RuntimeModeSchema.optional(),
});