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:
@@ -18,10 +18,6 @@ import { IpcClient } from "@/ipc/ipc_client";
|
||||
export function ProModeSelector() {
|
||||
const { settings, updateSettings } = useSettings();
|
||||
|
||||
const toggleSaverMode = () => {
|
||||
updateSettings({ enableProSaverMode: !settings?.enableProSaverMode });
|
||||
};
|
||||
|
||||
const toggleLazyEdits = () => {
|
||||
updateSettings({
|
||||
enableProLazyEditsMode: !settings?.enableProLazyEditsMode,
|
||||
@@ -76,16 +72,6 @@ export function ProModeSelector() {
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
<SelectorRow
|
||||
id="saver-mode"
|
||||
label="Saver Mode"
|
||||
description="Uses your free Gemini API quota before consuming Dyad Pro AI credits"
|
||||
tooltip="Note: using the free Gemini API lets Google use your data to
|
||||
improve their models."
|
||||
proEnabled={proEnabled}
|
||||
settingEnabled={Boolean(settings?.enableProSaverMode)}
|
||||
toggle={toggleSaverMode}
|
||||
/>
|
||||
<SelectorRow
|
||||
id="lazy-edits"
|
||||
label="Turbo Edits"
|
||||
|
||||
Reference in New Issue
Block a user